title: JAVAFX Editable Combobox gives null value
body: <p>I am facing a weird problem. I have an editable ComboBox with some items. After running my code if I type something into that ComboBox and call <strong><em>getValue()</em></strong> function then it gives me <strong><em>null</em></strong> value.</p>
  
  <p>Here is my code (thenewboston): 
  package application;</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.geometry.Insets;
  import javafx.scene.Scene;
  import javafx.scene.control.Button;
  import javafx.scene.control.ComboBox;
  import javafx.scene.layout.VBox;
  import javafx.stage.Stage;
  
  public class Main extends Application {
  
      Stage window;
      Scene scene;
      Button button;
      ComboBox&lt;String&gt; comboBox;
  
      public static void main(String[] args) {
          launch(args);
      }
  
      @Override
      public void start(Stage primaryStage) throws Exception {
          window = primaryStage;
          window.setTitle("ComboBox Demo");
          button = new Button("Submit");
  
          comboBox = new ComboBox&lt;&gt;();
          comboBox.getItems().addAll(
                  "Good Will Hunting",
                  "St. Vincent",
                  "Blackhat"
          );
  
          comboBox.setPromptText("What is your favorite movie?");
          comboBox.setEditable(true);
          button.setOnAction(e -&gt; printMovie());
  
          //ComboBoxes also generate actions if you need to get value instantly
          comboBox.setOnAction( e -&gt; System.out.println("User selected " + comboBox.getValue()) );
  
          VBox layout = new VBox(10);
          layout.setPadding(new Insets(20, 20, 20, 20));
          layout.getChildren().addAll(comboBox, button);
  
          scene = new Scene(layout, 300, 250);
          window.setScene(scene);
          window.show();
      }
      private void printMovie(){
          System.out.println(comboBox.getValue());
      }
  }
  </code></pre>
  
  <p>I am using Windows 8.1, Eclipse Mars (4.5) and Java 1.8.0_66</p>