Return the choice of a combobox javafx
问题 I have an app with 2 ComboBox and I would like to return the choice of the user into a variable. How should I do it ? Here is my controller class : package ch.makery.adress; import java.awt.FileDialog; import javafx.fxml.Initializable; import java.net.URL; import java.util.ResourceBundle; import javax.swing.JFrame; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.ComboBox;