I need to select rows in JXTreeTable for clicked parent and all of its subnodes. In older Swingx with deprecated JXTreeTable it could be done with TreeSelectionListener. I had listener (mTable is deprecated JXTreeTable):
and method selectionPerformed(evt):
When I clicked "Components" event was fired few times and with list.addSelectionInterval(begin, end); selection worked fine and looked like this:
But now, with new swingx 1.6, with new JXTreeTable, when I click "Components" in debug mode, this event is fire only once, so the result looks like this :
For example if I click "admin" program selecting this row and next 3 rows with its children. but if I click "Components" I need to select this row and all rows for children and every child's children. If you know what I mean
Is it any way to fire this event? Or maybe there's another way to do selection?