Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JTree and node backgrounds

Status
Not open for further replies.

daimaou

Programmer
Apr 4, 2001
154
PT
I'm with trouble when trying to set a background color in a JTree node. Actually I'm using the JTableTree (A JTree rendered inside a JTable) example from the java tutorials @ sun to display some data, and I need to paint each row background with a specific color according to the data on that row.
The problem is that I can't seem to be able to set the background color for a node in a JTree. How can I do it?
 
Forget about it. I ended up implementing my own renderer for JTree and it's working now :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top