Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree ToolTip

 
Jeremy Hooie
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Thanks,
Jeremy
 
Vinod Venugopal
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set tooltip & make it wrap round so that it comes in next line, it looks as if its in a pane.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic