permaculture playing cards
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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'.
It is sorta covered in the JavaRanch Style Guide.
subject: tool tip in jtree
It's not a secret anymore!