wood burning stoves
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
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

Cloning a complete TreeNode

don lohith

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

Joined: Jul 20, 2005
Posts: 10441


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

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

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Cloning a complete TreeNode
jQuery in Action, 3rd edition