This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes How can I implement a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How can I implement a "tooltip"?" Watch "How can I implement a "tooltip"?" New topic

How can I implement a "tooltip"?

rogelio uribe

Joined: Aug 01, 2001
Posts: 14
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

Joined: Jul 29, 2001
Posts: 64
Use the setToolTipText(String s) of the JComponent Class.
I agree. Here's the link:
subject: How can I implement a "tooltip"?
jQuery in Action, 3rd edition