JTree Node Selection order

  • pradeeprkm
  • Born
  • Born
  • pradeeprkm
  • Posts: 2

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 124 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.