wood burning stoves
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree icon tooltip" Watch "JTree icon tooltip" New topic

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,
I agree. Here's the link: http://aspose.com/file-tools
subject: JTree icon tooltip
It's not a secret anymore!