If you want to check whether something is selected in the combobox you can use:


if(combobox1.getSelectedIndex() == -1) {
// Nothing has been selected in the combo box
}