This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.



Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Preserving selections in JTree  RSS feed

 
Kevin Jaffe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With JTree, when a node's descendant is selected (i.e. highlighted),
and then the node is "closed", the descendant becomes deselected and
the node itself becomes selected. If the node is then re-opened, it
remains selected, while the formerly selected descendant remains
unselected. In other word, JTree forgets that a descendant is
selected when an ancestor is closed.
Is there any way to get JTree to remember all the selected nodes, even
while ancestor nodes are closed?
Thanks!
KJ
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!