Example usage for javafx.scene.control ChoiceBox getConverter

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

Introduction

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

Prototype

public final StringConverter<T> getConverter() 

Source Link

Usage

From source file:Main.java

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

    System.out.println(choiceBox.getConverter());
    VBox box = new VBox();
    box.getChildren().add(choiceBox);/*from w  w  w . ja  v a2 s .co m*/
    final Scene scene = new Scene(box, 300, 250);
    scene.setFill(null);
    stage.setScene(scene);
    stage.show();
}