mouse over on JButton
JButton b2 = new JButton ("Joke Break", new ImageIcon ("joke.gif"));
b2.setBounds (25, 40, 125, 25);
b2.addActionListener (new ActionListener ()
public void actionPerformed (ActionEvent e)
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
You can set a rolloverIcon (AbstractButton class) for the button and you also have available the JComponent method setToolTipText.