aspose file tools*
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

cardwell cupp
Ranch Hand

Joined: Aug 16, 2001
Posts: 66
Is there a way to change the icons of a jtree?
Thanks
Cardwell
cardwell cupp
Ranch Hand

Joined: Aug 16, 2001
Posts: 66
Nevermind. I figured it out. It is actually quite easy, you just creat a new TreeCellRenderer, use the set icon functions, and then add it to the jtree....
Thanks All any way
Cardwell
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTree