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