Example usage for javafx.scene.control ChoiceBox converterProperty

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

Introduction

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

Prototype

public ObjectProperty<StringConverter<T>> converterProperty() 

Source Link

Document

Allows a way to specify how to represent objects in the items list.

Usage

From source file:Main.java

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

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