I have 3 JComboBoxes
each with an actionListener
. Upon selecting an item from any one of the JComboBoxes
should update the content of the other two, and when two of the JComboBoxes
are selected, the 3 combo box value should be updated based on the values selected from the other two JComboBoxes
. I am updating the content using setModel(new DefaultComboBoxModel(array))
Am I suppose to use and actionlistener or an itemchangelistenner for the combo boxes? Is there a preference on the choice?
Asked
Active
Viewed 3,712 times
-1

jpo
- 3,959
- 20
- 59
- 102
-
1Without any code it would be pure guessing. – Howard Jul 03 '11 at 17:05
-
1Yep, you've got a bug, but we haven't the ability to read minds yet to figure out what it is. – Hovercraft Full Of Eels Jul 03 '11 at 17:07