I need to handle a scenario in my code where the trigger is the selection of an already selected tree node. Now I have a TreeListener attached to the tree, but it only generates an event in case I select a node different from the one already selected.
Is there any other type of listener that I can attach with my tree that will allow me to catch the re-selection of an already selected node?
You could add a MouseListener to listen for mouse selections. The JTree api has methods for finding the row and path for any given view location and for finding the current selection(s).
Our first order of business must be this tiny ad:
a bit of art, as a gift, the permaculture playing cards