Commits

shemnon committed 5c3a21c

temporary fix for jdk8-ea-b61

  • Participants
  • Parent commits 4352922

Comments (0)

Files changed (1)

File samples/Ensemble2/src/main/java/ensemble/samples/controls/ComboBoxSample.java

         HBox hbox = HBoxBuilder.create().alignment(Pos.CENTER).spacing(15).build();
                
         //Non-editable combobox. Created with a builder
-        ComboBox uneditableComboBox = ComboBoxBuilder.create()
-                .id("uneditable-combobox")
-                .promptText("Make a choice...")
-                .items(FXCollections.observableArrayList(strings.subList(0, 8))).build();
+//        ComboBox uneditableComboBox = ComboBoxBuilder.create()
+//                .id("uneditable-combobox")
+//                .promptText("Make a choice...")
+//                .items(FXCollections.observableArrayList(strings.subList(0, 8))).build();
+        // broken in 8-ea-b61
+        ComboBox<String> uneditableComboBox = new ComboBox<String>();
+        uneditableComboBox.setId("uneditable-combobox");
+        uneditableComboBox.setPromptText("Make a choice...");
+        uneditableComboBox.setItems(FXCollections.observableArrayList(strings.subList(0, 8)));
 
         //Editable combobox. Use the default item display length
         ComboBox<String> editableComboBox = new ComboBox<String>();