i created a "tree":
var tree = new Tree(node);
now i want to insert a node "dynamically" into it via an action:
var treeModel = (DefaultTreeModel)tree.getModel();
treeModel.insertNodeInto(newChild, this, childCount);
The node is correctly inserted, i can check this by doing
The problem is that this collapses all childs and not the new one.
I also cannot do
as this collapses all nodes (parent of a parent etc).
Is there a way to tell the treeModel to insert the node and dont refresh/collapse the other childs?