0

How can I add icons to a JTree. I want add a different icon to a root and different icons to the leafs of the root and different to the leafs of a leaf.

I am implementing a Jtree to show a user, the albums of the user and the photos in the inside a particular album. So three different types of icons..

mKorbel
  • 109,525
  • 20
  • 134
  • 319
jrdnsingh89
  • 215
  • 2
  • 7
  • 18
  • 1
    is there a step by step tutorial which I can follow don't know anything about JTrees.. – jrdnsingh89 Mar 31 '13 at 18:09
  • 1
    See [*How to Use Trees*](http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html); the example's model is the default for `new Jtree()`. – trashgod Mar 31 '13 at 18:11

0 Answers0