Clear JXTreeTable / remove Nodes
Hey guys, im pretty new here and i have issue to clear my treetable.
I extended my Model from DefaultTreeTableModel and i use my own class MusicNode that implements the interface MutableTreeTableNode. Well if i search for something in my project i add new nodes with the insertNodeInto() method. That works well but if i search for new nodes they are just appended to the list and the old nodes with their values are still shown. I tried many things like removing all child nodes of the root or creating a new root but nothing worked so far. Can anybody help me with that issue? Whats the best way to clear my TreeTable?