Java JComboBox cannot add or remove item

时间:2016-04-25 09:40:48

标签: java swing jcombobox

Recently, am facing a issue where i neither can add items into the JCombobox nor remove items from the JComboBox. If i test the same code in Eclipse Marse IDE it works but in netbeans its not working. Can I know the reason for this to happen.

This is the code which giving me problem:

public javax.swing.JComboBox<File> getJcmbSelectFile() {
    return jcmbSelectFile;
}

jcmbSelectFile.removeAllItems();

The error its showing is undefined symbol jcmbSelectFile. Thanks in advance.

0 个答案:

没有答案