View Single Post
  #1 (permalink)  
Old 07-22-2007, 08:28 PM
gradon gradon is offline
Member
 
Join Date: Jul 2007
Posts: 4
gradon is on a distinguished road
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
Reply With Quote
Sponsored Links