This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

JTree

Anonymous
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.
 
GeeCON Prague 2014
 
subject: JTree