Friday, June 2, 2017

Java: Dynamically change options within a combo box

Java: Dynamically change options within a combo box.





String[] descriptions = Med.getDescriptions(substituteMeds);
DefaultComboBoxModel model = new DefaultComboBoxModel(descriptions);
medSubstitutionComboBox.getCombo().setModel(model);





No comments:

Post a Comment