This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes tooltips... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "tooltips..." Watch "tooltips..." New topic


rob armstrong
Ranch Hand

Joined: Jul 25, 2005
Posts: 77
Is there a way i can 'implement' the tooltip feature??
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60071

In what? Swing? HTML? Other?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
rob armstrong
Ranch Hand

Joined: Jul 25, 2005
Posts: 77
ok i want to have a JPanel overriding paintComponent added to a JFrame...

Basically i want a 'Shape' with tooltips. But it doesnt seem to have tooltips.
I tried to have a oject that overrides JCOmpoonent and override the paintComponent(Graphics g) method and place that into the JPanel somewhere and than add it to the JFrame. The object appears but does not have tooltips
Ricky Clarkson
Ranch Hand

Joined: Jul 27, 2006
Posts: 131
You can draw custom graphics onto a JLabel or a JButton by virtue of the Icon APIs, with no problems, and it will often be faster than paintComponent, and not need to be done on the EDT.
It is sorta covered in the JavaRanch Style Guide.
subject: tooltips...
Similar Threads
Best tooltip library?
Pop up a message
Tooltip stay longer?
Increase Mouse Tool Tip
Ajax tooltip position problem