How can I get the selected item from a ComboBox?
I saw some ways to do but I could not implement, that is, I did not understand how it works.
I can set the items in the comboBox as follows:
ObservableList<String> options
= FXCollections.observableArrayList(
"Ativo",
"Suspenso"
);
cbStatus.setItems(options);
I just can not get them when I select them in the comboBox.