This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes Cloning a complete TreeNode Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


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: 8208
    
  71

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Cloning a complete TreeNode
 
Similar Threads
TreeNode ClassCastException?
Trees in Java
Using TreeModel: How to implement editing!!??
Cloning a TreeNode.........
Fail to create generic array?