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

Tadashi Ohmura omurata at ga2.so-net.ne.jp
Sun Oct 21 15:47:31 PDT 2012


Hello everyone

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


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