File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTree ToolTip Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree ToolTip" Watch "JTree ToolTip" New topic

JTree ToolTip

Jeremy Hooie
Ranch Hand

Joined: Aug 22, 2001
Posts: 38
What's the best way to go about creating a ToolTip for a tree node in a JTree? I want to be able to show a JPanel with multiple lines of information. Is this possible, or would I have to use a multi-line String?
Vinod Venugopal
Ranch Hand

Joined: Dec 06, 2000
Posts: 148
You can set tooltip & make it wrap round so that it comes in next line, it looks as if its in a pane.

- Vinod<br />-------<br />SCJP2
I agree. Here's the link:
subject: JTree ToolTip
It's not a secret anymore!