title: TextField - getText() wont work
body: <p>I have this code sample that implement input mask to <code>TextField</code>:</p>
  
  <pre><code>package com.example;
  
  import javafx.application.Application;
  import javafx.event.ActionEvent;
  import javafx.event.EventHandler;
  import javafx.geometry.Pos;
  import javafx.scene.Scene;
  import javafx.scene.control.Button;
  import javafx.scene.control.TextField;
  import javafx.scene.layout.VBox;
  import javafx.stage.Stage;
  
  public class Main extends Application {
  
      @Override
      public void start(Stage stage) {
          TextField field = new TextField() {
              @Override public void replaceText(int start, int end, String text) {
                  super.replaceText(start, end, "@");
              }
          };
  
          Button button = new Button("Show Text");
          button.setOnAction(new EventHandler&lt;ActionEvent&gt;(){
              @Override
              public void handle(ActionEvent event) {
                  System.out.println("TEXT: " + field.getText());
              }
          });
  
          VBox root = new VBox(20);
          root.setAlignment(Pos.CENTER);
          root.getChildren().addAll(field, button);
  
          Scene scene = new Scene(root, 500, 500);
          stage.setScene(scene);
          stage.show(); 
      }  
  
  }
  </code></pre>
  
  <p>Whenever I type the word "LIFE" in the TextField and press the button, the output always returns <code>TEXT: @@@@</code>, I want the output to return <code>TEXT: LIFE</code>. It seems like <code>getText</code> is not working. How to fix this?</p>