How to get the selected item from a ComboBox in JavaFX?

Take a look at the API: http://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ComboBox.html

There’s a comboBox.getValue() method which gives you the selected item.

Leave a Comment