Example usage for javafx.scene Scene cursorProperty

List of usage examples for javafx.scene Scene cursorProperty

Introduction

In this page you can find the example usage for javafx.scene Scene cursorProperty.

Prototype

public final ObjectProperty<Cursor> cursorProperty() 

Source Link

Usage

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());

}