File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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"?
It's not a secret anymore!