My custom component is composed of three JTree
s inside a JPanel
. Only one JTree
should be selected at a time, so I've added a TreeSelectionListener
to each of them that calls clearSelection
on the previously selected JTree
.
I'd like to add other TreeSelectionListener
s to the JTree
s being sure that the selection- handling listeners always get executed first. I'd prefer not to put everything in one single TreeSelectionListener
.
What should I do? Thanks in advance!