I'm trying to update a ComboBox by adding new items to a model.
DefaultComboBoxModel<String> model = new DefaultComboBoxModel<>(); for (int i = 0; i < values.length; i++) { model.addElement(values[i]); } jComboBox.setModel(model);
This should update the items, but it's only updating the size of the ComboBox. I'm not able to select any of the newly added items.