Javafx Combobox Example, You can also use Scene Builder to make it easy and load the FXML file using different codes.