This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes tool tip in jtree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "tool tip in jtree" Watch "tool tip in jtree" New topic

tool tip in jtree

Arun Sharma
Ranch Hand

Joined: Dec 24, 2003
Posts: 40
Hi :
I want to set a tool tip for JTree nodes dynamically. I have extended JTree. How do I do that. Can anybody help me out ??
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

see DefaultTreeCellRenderer, there you may override 'setToolTipText'.
I agree. Here's the link:
subject: tool tip in jtree
It's not a secret anymore!