This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes Cloning a complete TreeNode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Cloning a complete TreeNode

don lohith
Greenhorn

Joined: Oct 24, 2007
Posts: 16
Hi how can i clone a complete TreeNode......?(i Am doing a copy paste on TreeNode)
The node reference returned by such a method is used to paste the node elsewhere, So that if i add that node, i should be able to get the whole children hiearchy with it.......Please help........

there is a clone() in DefaultMutableTreeNode Class, which clones only that particular node, but what i want is the complete children node....
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10059
    
163

Lohith,

Please do not post the same question in multiple forums. I moved a duplicate of this post from JBoss to the Swing forum. Let's continue the discussion there


[My Blog] [JavaRanch Journal]
don lohith
Greenhorn

Joined: Oct 24, 2007
Posts: 16
Sorry i didn't know where to send it........so i posted it here....
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Lohith S",
Please check your private messages.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
wood burning stoves
 
subject: Cloning a complete TreeNode