Meaningless Drivel is fun!*
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 Spring in Action this week in the Spring 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: 10207
    
166

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
 
 
subject: Cloning a complete TreeNode