Results 1 to 2 of 2
Thread: mouse over on JButton
- 07-22-2007, 07:28 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 4
- Rep Power
- 0
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
- 08-04-2007, 06:50 AM #2
Similar Threads
-
Mouse dragg not working
By Preethi in forum AWT / SwingReplies: 1Last Post: 02-08-2008, 05:51 AM -
The mouse and the cheese
By Don Quixote in forum Java 2DReplies: 4Last Post: 08-15-2007, 11:55 PM -
How to mouse-drag a JWindow?
By cruxblack in forum New To JavaReplies: 3Last Post: 08-06-2007, 10:52 AM -
Use the mouse position
By susan in forum Java AppletsReplies: 1Last Post: 07-29-2007, 12:10 AM -
Mouse over JButton
By sandor in forum AWT / SwingReplies: 1Last Post: 05-17-2007, 10:15 PM
Bookmarks