Moving child node's parent in JTree
807589Jul 12 2008 — edited Jul 13 2008hi guys.
What i have is a Jtree dynamically generated, im trying to re-arrange the nodes inside.
each nodes and their parents have their own values and been built with DefaultMutableTreeNode.
So im thinking, to do so i first need to analyse which child node i want to move, then remove it from its current parent, then set the new parent to this node.
I been thinking of using the values and compare them to do the parent-node matching, however, i have been looking at the APIs without luck, for methods to possible retrieve the values of the childs/parents.
Or perhaps there is a simpler way,
Does anybody have a clue where i could find some answers to this problem?
Cheers, Eric.