Skip to main content

Clear JXTreeTable / remove Nodes

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2013-05-22

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?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-11

would be happy to help - but nothing we can do without seeing some code :-) Preferably a SSCCE that demonstrates the problem.