0

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 ?

pheromix
  • 18,213
  • 29
  • 88
  • 158

1 Answers1

2

Use separate Listeners (one for each list)?

  • 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