• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

position of a node


hello there,

is it possible to get the depth of the tree nodes.for example i want to get xxx as root,yyy as 1 and zzz as 2.in short i need to get the position of a node.

JTree                         JTabbedPane
-xxx                           xxx     yyy    zzz
   -yyy
     -zzz


cheers
zolf
0
zolf
Asked:
zolf
  • 2
2 Solutions
 
CEHJCommented:
Try getPathCount of the TreePath(s) selected
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Maybe treeNode.getPathForRow ().getPath ().length ;
0
 
CEHJCommented:
:-)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now