This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Help with Jtree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help with Jtree" Watch "Help with Jtree" New topic
Author

Help with Jtree

shri mon
Ranch Hand

Joined: Jan 11, 2005
Posts: 63
Is it possible to set two different icons for two different leaves in a JTree.

Thanks in advance.
Shrimon
Tad Dicks
Ranch Hand

Joined: Nov 16, 2004
Posts: 264
Yes. You need to extend/implement your own TreeCellRenderer.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with Jtree