JList interaction

How can I change or  affect the contents (one or all the elements) in JList A by hitting one element in JList B?
amaral050799Asked:
Who is Participating?
 
ninnuConnect With a Mentor Commented:
you have to add addListselectionListener() to the Jlist B and if a selection made to it call the setListData(Vector listData) method to change the JList A contents.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.