wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes awt button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "awt button" Watch "awt button" New topic
Author

awt button

cinderalla rahul
Greenhorn

Joined: Jan 11, 2002
Posts: 9
Hello Friends,
I am using awt button component.
I have to set image for this button,so i tried to paint the image over the button.
it worked.
But i need to change the image like JButton(normal,rollover,selected icon) for this awt using paint by mouse event.
Is this possible & will work fine.If so help me out try this.
Excepting u'r replies,
cinderalla.
Sals Hamid
Greenhorn

Joined: Jan 04, 2002
Posts: 24
its possible by adding events like mouseMotionListner and mouseActionListner


No Path of Flowers lead to glory
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
Originally posted by Sals Hamid:
its possible by adding events like mouseMotionListner and mouseActionListner

Further to Hamid's reply:
There are only two mouse listener interfaces and by convention interfaces also starts with capital letter like class:
1. MouseListener
2. MouseMotionListener
There is no mouseActionListener in java IMHO.
Good luck
Rashid
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: awt button
 
Similar Threads
Awt Button
How to get image on a button using applet
setting an image as a label for a button
Painting an image on a button
painting image over JButton