File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

sridhar bvap
Posts: 19
  • 0
  • 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 ]
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic