• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to expand only selected node in one level in JTree?

 
sridhar bvap
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,
iam using JTree.What i want is, when i select a perticular node in one level, the tree has to display only child nodes of selected node, the other nodes in that level automatically collapse if they already expanded. That is in a one level only one node has to expand, the other nodes has to collapse.
If any budy knows this please help me.

Thanks to one and all.
[ March 31, 2008: Message edited by: sridhar bvap ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic