Re: I have 2 JLists. How can I find which JList user clicked?
- From: pit.grinja@xxxxxx
- Date: 28 Apr 2006 13:09:11 -0700
Below is the code. It can move the names fromThe same way you move the items the other way.
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.
Register an ListSelectionListener on your second list. To figure out
which LIst was clicked, use e.getSource()
.
- References:
- I have 2 JLists. How can I find which JList user clicked?
- From: niceguy16
- I have 2 JLists. How can I find which JList user clicked?
- Prev by Date: Re: JPanel Listener Problem
- Next by Date: JTable Background Color
- Previous by thread: I have 2 JLists. How can I find which JList user clicked?
- Next by thread: Paint problem
- Index(es):