aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Changing colors in JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Changing colors in JTree" Watch "Changing colors in JTree" New topic
Author

Changing colors in JTree

Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
Hi, how can I change color of line which connect proper nodes?

example :

UIManager.put("Table.PROPERTY", new Color(169,168,62));

I don't know PROPERTY...
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Pavel Kubal
Ranch Hand

Joined: Mar 13, 2004
Posts: 356
Thank you, that's EXACTLY what I wanted
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Changing colors in JTree