how to update jtree after removing or adding new node?
814246Feb 1 2013 — edited Feb 13 2013after removing the nodes from jtree , nodes are still there but with no dotted lines.
i think my model is not updated properly or jtree is not getting notified properly.
Im using DefaultTableModel and my nodes are of user class which extends DefaultMutableTreeNode Class.
i tired method:
model.reload(node);
model.nodeStructureChanged(node);
model.nodeChanged(node);
but nothing is working properly. nodes are still there but only branch lines (dotted lines) are gone.
any suggestions!!