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