File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Copy of JTree? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Copy of JTree?" Watch "Copy of JTree?" New topic

Copy of JTree?

mira yang
Ranch Hand

Joined: Nov 08, 2003
Posts: 33
How to make a deep copy of jtree?
[ April 23, 2004: Message edited by: mira yang ]
Joe Ess

Joined: Oct 29, 2001
Posts: 8710

This is not an I/O question. I'm going to move it to Swing / JFC / AWT.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286

JTree newTree = currentTree;
?? I'm not quite understanding what you mean by "deep copy".

GenRocket - A Test Data Generation Platform
I agree. Here's the link:
subject: Copy of JTree?
Similar Threads
editable JTree
JTree help
DefaultTreeModel & JTree
JTree not scrolling to selected node