• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with Jtree  RSS feed

 
shri mon
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to set two different icons for two different leaves in a JTree.

Thanks in advance.
Shrimon
 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure !!! JTree is a very beautifully designed component.
look at jtree.setCellRenderer(TreeCellRenderer x)
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
possibly
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!