Finding nodes at particular row number

Hello,I need to get the nodes at particular row number in a JTree;Is there any method in the api to find this.
[124 byte] By [Sruthi.ma] at [2007-11-26 17:29:23]
# 1
Er... did you bother looking at the Javadoc?getPathForRow(int row)
itchyscratchya at 2007-7-8 23:57:20 > top of Java-index,Desktop,Core GUI APIs...
# 2
Er... did you bother looking at the Javadoc?>>>Yes,I did.That does not serve the purpose.Please read the question again. I need to get all nodes at given row number.Is there any method available for it?
Sruthi.ma at 2007-7-8 23:57:20 > top of Java-index,Desktop,Core GUI APIs...
# 3

Please read the question again. I need to get all nodes at given row number.Is there any method available for it?

Er, yes. That gives you the tree path to that row. The node at the end of that path is the node at that row.

What do you mean by 'nodes,' plural? There is only one node at any one row.

itchyscratchya at 2007-7-8 23:57:20 > top of Java-index,Desktop,Core GUI APIs...
# 4

What do you mean by 'nodes,' plural? There is only one node at any one row.

>>Well actually,I thought a row is level in tree-like first level is root ,second level is its children and third level is their children.So I need nodes at each level.I am sorry for the confusion of row and level.

Sruthi.ma at 2007-7-8 23:57:20 > top of Java-index,Desktop,Core GUI APIs...
# 5
Oh. Then you take the parent node in each case and call getChildCount() and getChild() on the TreeModel.
itchyscratchya at 2007-7-8 23:57:20 > top of Java-index,Desktop,Core GUI APIs...
# 6
Yes.This means that I will have to iterate through the all the levels until I get the desired level.Looks fine and now I am doing similar to this.I expected if something similar already existing in API if I missed.Thank you very much.
Sruthi.ma at 2007-7-8 23:57:20 > top of Java-index,Desktop,Core GUI APIs...