aspose file tools
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 RabbitMQ in Depth this week in the Open Source 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: 62737

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...