JTree Node Selection order

  • pradeeprkm
  • Born
  • Born
  • No Avatar
  • Joined: Jul 30, 2011
  • Posts: 2
  • Status: Offline

Post July 30th, 2011, 12:48 pm

Hi,

When a user selects a leaf, I want to display an icon(number picture) displaying the order in which this leaf is selected. i.e, if node has three leaves, if I click on the first, second and third, I want to display 1,2,3 with the node text. It the user deselects second node, I should automatically renumber the other selected nodes 1 and 2.

I can use the TreeCellRenderer and set the icone for the selected leaf, but, at the same time how do I refresh the icons on the other leafs ?

Any help is greatly appreciated.

Thank you
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 30th, 2011, 12:48 pm

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: Kurthead+1 and 128 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.