This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

awt button

 
cinderalla rahul
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its possible by adding events like mouseMotionListner and mouseActionListner
 
Rashid Ali
Ranch Hand
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic