title: JavaFX getText from textfield when button pressed(FX Builder)
body: <p>Currently in the process of learning myself JavaFX.</p>
  
  <p>I have used Scene Builder to create a simple Scene with a button, and a textfield.</p>
  
  <p>How come I can not click the button, and get the text from the textfield? </p>
  
  <pre><code>@FXML
  private void handleButton1Action(ActionEvent event) {
  
      System.out.println(tittel.getText());
  
  
  }
  </code></pre>
  
  <p>The FXML code is :</p>
  
  <pre><code>  &lt;TextField id="tittel" fx:id="tittel" layoutX="120.0" layoutY="64.0" promptText="Tittel" /&gt;
  </code></pre>