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 Help with 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 "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
 
Similar Threads
JTree
JTree flicker
Help with Jtree
JTree and XML
JTree