A quick test reveals that nothing happens:
import javax.swing.JComboBox;
class ComboBoxTest {
public static void main(String[] args) {
JComboBox<String> box = new JComboBox<String>();
box.removeAllItems();
}
}
No errors were thrown
0
solved Could the combobox.removeAllItems method throw an exception if the combobox was empty? [closed]