[Solved] Could the combobox.removeAllItems method throw an exception if the combobox was empty? [closed]

[ad_1]

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

[ad_2]

solved Could the combobox.removeAllItems method throw an exception if the combobox was empty? [closed]