Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree

 
cardwell cupp
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to change the icons of a jtree?
Thanks
Cardwell
 
cardwell cupp
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic