This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Help with Jtree
 
It's not a secret anymore!