List of usage examples for javafx.scene Scene cursorProperty
public final ObjectProperty<Cursor> cursorProperty()
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox choiceBoxRef = ChoiceBoxBuilder.create().items(cursors).build(); VBox box = new VBox(); box.getChildren().add(choiceBoxRef); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w w w .j a va 2s . c o m*/ stage.setScene(scene); stage.show(); scene.cursorProperty().bind(choiceBoxRef.getSelectionModel().selectedItemProperty()); }