What is the simple way to check whether any item is selected in JavaFX ComboBox or if it is left without selected item?
You can use
boolean isMyComboBoxEmpty = myComboBox.getSelectionModel().isEmpty();
Which also works, if you have a null
item among the ComboBox
items.