This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Why are my JComboBoxes automatically populating with only one element?
Posted by Jessica S on June 14, 2001 at 2:45 PM
I am trying to build a program that builds combo boxes based on a selection from another combo box located above it. When the user selects a word from the box and next box down should populate with all the corresponding options. However, all three of my combo boxes are being populated with only one option because the filling of the boxes is triggering an action event. Any way to get around not populating all combo boxes, just the next one in line? The filling of the combo box is automatically triggering an action event or a item listner event. Help!
Replies:
|