aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTree icon tooltip Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree icon tooltip" Watch "JTree icon tooltip" New topic
Author

JTree icon tooltip

Cathy Song
Ranch Hand

Joined: Jul 01, 2003
Posts: 92
Hi All,

I have successfully added tooltips to the nodes in the JTree. How can I add additonal tooltips to the icons in the JTree?

I have created an icon with a description:
Icon icon= new ImageIcon("icon.gif", "icon description");

Now when I mouse over the icon it should display the icon description.

Thank you,
Cathy.
 
Don't get me started about those stupid light bulbs.
 
subject: JTree icon tooltip