This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree icon tooltip