Example usage for javafx.scene.control ChoiceBox itemsProperty

List of usage examples for javafx.scene.control ChoiceBox itemsProperty

Introduction

In this page you can find the example usage for javafx.scene.control ChoiceBox itemsProperty.

Prototype

public final ObjectProperty<ObservableList<T>> itemsProperty() 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage stage) {
    ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors);

    System.out.println(choiceBox.itemsProperty());
    VBox box = new VBox();
    box.getChildren().add(choiceBox);//from w w w  .  j av  a 2s.  c  om
    final Scene scene = new Scene(box, 300, 250);
    scene.setFill(null);
    stage.setScene(scene);
    stage.show();
}