|
mouse over on JButton
JButton b2 = new JButton ("Joke Break", new ImageIcon ("joke.gif"));
pane.add (b2);
b2.setBounds (25, 40, 125, 25);
b2.addActionListener (new ActionListener ()
{
public void actionPerformed (ActionEvent e)
{
//JokeTxt.setText ();
Joke ();
generateJoke ();
}
}
);
there is the code now i want to make it that when the person wants to click on the Button , when the mouse moves over teh button a message must appear can some1 help me with this
thanks
|