Re: I have 2 JLists. How can I find which JList user clicked?



Below is the code. It can move the names from
the left to the right if you click the name. How can I move the name
from the right to left? Thank you very much.
The same way you move the items the other way.
Register an ListSelectionListener on your second list. To figure out
which LIst was clicked, use e.getSource()

.