This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "tool tip in jtree" Watch "tool tip in jtree" New topic
Author

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 ??
Thanks,
Sam
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

see DefaultTreeCellRenderer, there you may override 'setToolTipText'.


http://home.arcor.de/hirnstrom/bewerbung
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: tool tip in jtree
 
Similar Threads
JTree
JTree
JTree
JTree
JTree