Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About button's onMouseOver event

 
rose deng
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I want to do following thing: when put mouse over button,some hint message will appear,when mouse left,the message disappear.
i know it's easy to do if use javascript,but i want to do it use java in applet.
Give me help and thanks for your help a lot.
 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rose!
If you are using Swing, you can accomplish this by using the setToolTipText(String tip) for your button.
Hope this helps.
Stephanie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic