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

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]

[Solved] JCombobox value retrieve from My Sql

you have look at AutoCompete JComboBox / JTextField, notice you have to save both Java classes, examples here, please don’t use Netbeans generated code, because in most cases is too hard overrive basic methods, use Standard Swing JComponents instead solved JCombobox value retrieve from My Sql