Example usage for javafx.scene.control ChoiceBox hide

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

Introduction

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

Prototype

public void hide() 

Source Link

Document

Closes the list of choices.

Usage

From source file:Main.java

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

    choiceBox.hide();
    VBox box = new VBox();
    box.getChildren().add(choiceBox);//from   w  w  w.ja va  2 s . c o  m
    final Scene scene = new Scene(box, 300, 250);
    scene.setFill(null);
    stage.setScene(scene);
    stage.show();
}