There are many List
in my Form and they all call addSelectionListener
. The problem is that the parameters of the abstract method selectionChanged
are just (int oldSelected, int newSelected)
! So how to know which List
was clicked ?
Asked
Active
Viewed 22 times
1 Answers
2
Use separate Listeners (one for each list)?

double_word_disruptor
- 179
- 4
-
Additional idea to eventually fit your needs: Call one a universal methode from all listeners with an additional parameter for identification of the event source. – double_word_disruptor May 22 '14 at 15:37