List of usage examples for javafx.scene.control ChoiceBox getValue
public final T getValue()
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors); System.out.println(choiceBox.getValue()); VBox box = new VBox(); box.getChildren().add(choiceBox);/*ww w . j a v a2 s .c o m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }