title: How to programmatically get text from TextField
body: <p>I have this code to find all "id" names, but I want to use these names to now get the text from the same fxml.</p>
  
  <pre><code>@FXML
  private void handleButtonAction(ActionEvent event) {
  
  
      Node source = (Node) event.getSource();
      Scene scene = source.getScene();
      ObservableList&lt;Node&gt; stringArray = source.getParent().getChildrenUnmodifiable();
      for (int index = 0; index &lt; stringArray.size(); index++) {
          if (stringArray.get(index).getId() != null) {
              System.out.println(stringArray.get(index).getId());
          }
      }
  </code></pre>
  
  <p>}</p>