Hi Coders Im developing a Swing GUI and I use a several JList in it. my class implements ListSelectionListener and in order Im overriding valueChanged(). I�ve no problems to detect one Jlist adjusting event but when its becomes to more then one JList the method valueChanged() effect to two Jlist , How can I listen to multiple Jlist in the same valueChanged ? Thanks in advance Shay
Hi Samifox, Just add the same class as the listener for each JList. Inside the valueChanged method just use the given object handle. The following code should work.