aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree" Watch "JTree" New topic
Author

JTree

Priya M
Greenhorn

Joined: Jul 04, 2001
Posts: 5
I 've got JTree and I want get the rootnode of the tree for further development and iam facing some problem in getting that do teel me to how to get that
Thanks in adv,
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, which you agreed to when you registered, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Durga Penmatsa
Greenhorn

Joined: Aug 14, 2001
Posts: 23
Hi,
Get the tree model from JTree, and TreeModel class has getRoot()
method which returns you the root of the JTree.
Hope this helps.
Regards
Durga
Originally posted by Priya M:
I 've got JTree and I want get the rootnode of the tree for further development and iam facing some problem in getting that do teel me to how to get that
Thanks in adv,

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree