title: What's "inside" the TextField
body: <p>I have the following <strong>JavaFX</strong> code:</p>
  
  <pre><code>final TextField textField = new TextField();
  </code></pre>
  
  <p>and an<code>EventHandler&lt;ActionEvent&gt;</code>with checking textField wether it's empty or not. The problem is that <code>textField.getText() == null</code> or <code>textField.getText() == ""</code> both returns <strong>false</strong>, but i didn't print anything in that field, so it should return true.</p>
  
  <pre><code>
  final TextField textField = new TextField();
  browse.setOnAction(new EventHandler() {
      @Override
      public void handle(ActionEvent actionEvent) {
          FileChooser fileChooser = new FileChooser();
          File chFile = fileChooser.showOpenDialog(stage);
          if (chFile != null) {
              // some code
              if (textField.getText() != null && textField.getText() != "") {
                  // some code
              }
          }
      }
  });
  </code></pre>