×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Ellirabeth Dzhurko
Added: Aug 30, 2016 2:26 PM
Views: 2
Tags: no tags
  1.  final ObservableList strings = FXCollections.observableArrayList(
  2.             "Circle", "Rectangle", "Squad");
  3.     @FXML
  4.     private ComboBox<String> editableComboBox;
  5.  
  6.     @FXML
  7.     private void initialize() {
  8.  
  9.  
  10.         System.out.println("MainStageEditController init");
  11.         this.dialog = dialog;
  12.         List_shape list_shape = new List_shape();
  13.  
  14.  
  15.         //editableComboBox = new ComboBox <String>();
  16.         //editableComboBox.setId("second-editable");
  17.         editableComboBox.setPromptText("Edit or Choose...");
  18.         editableComboBox.setItems(strings);
  19.         editableComboBox.setEditable(true);
  20.         System.out.println(strings);
  21.  
  22.  
  23.     }
  24.