-1

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?

jpo
  • 3,959
  • 20
  • 59
  • 102

1 Answers1

1

you can start with this example

Community
  • 1
  • 1
mKorbel
  • 109,525
  • 20
  • 134
  • 319