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 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree" Watch "JTree" New topic


Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have a JTree which has been created with some user difined objects as nodes. Now i want to set the color for that node based on one attribute which will available in that object with some object.getAttirbute() method. So how to set the color for that node in JTree.
I agree. Here's the link:
subject: JTree
It's not a secret anymore!