ChoiceBoxBuilder.<String>create() is error. How to fix?

Tadashi Ohmura omurata at
Sun Oct 21 15:47:31 PDT 2012

Hello everyone

ChoiceBox<String> choiceBox = ChoiceBoxBuilder.<String>create()
.items( FXCollections.observableArrayList("New", "Open", "Save", "Exit") )

The method create() is ambiguous for the type ChoiceBoxBuilder at Java8.
It is OK at Java7.

Plese teach me how to fix this error?

Best regards
Tadashi Ohmura

More information about the openjfx-dev mailing list