File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes how to check parent availability in Jtree structure in swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to check parent availability in Jtree structure in swing" Watch "how to check parent availability in Jtree structure in swing" New topic
Author

how to check parent availability in Jtree structure in swing

suganya vijaykumar
Greenhorn

Joined: Jun 22, 2008
Posts: 12
i have created the tree structure using Jtree in swing.. i can add child leaf to root. but how to add the leaf to a particular parent..


[ September 03, 2008: Message edited by: Rob Prime ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19557
    
  16

Please UseCodeTags in the future. I've added them for you this time.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> but how to add the leaf to a particular parent..

define "particular parent"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to check parent availability in Jtree structure in swing
 
Similar Threads
I am lost , Help Me Please ...JTree
JCheckBox in Jtree Problem
need help with jTree isNodeAncestor()
JTree
How to disable a certain treenode in a jtree