Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I implement a "tooltip"?

 
rogelio uribe
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a method (if one of them exists) so that I can implement a tooltip text; I mean when you put the mouse over a point on the screen for a few consecutive seconds, a text message appears on the screen, showing some helpful information about that issue. Something like toolTipText in Visual Basic.
Any ideas?
 
kyle amburn
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi-
Use the setToolTipText(String s) of the JComponent Class.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic