Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About button's onMouseOver event  RSS feed

 
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
Boost this thread!