title: Getting id from a ActionEvent in JavaFX
body: <p>I have a group of <code>ToggleButtons</code> that need to find out their id. Currently I can check the id in the <code>getSource()</code> and <code>toString()</code> method like this:</p>
  
  <pre><code>@FXML
  public void btnCell(ActionEvent actionEvent) {
      System.out.println(actionEvent.getSource());
  }
  </code></pre>
  
  <p>Prints: <code>ToggleButton[id=btn00, styleClass=toggle-button]''</code></p>
  
  <p>Can I extract the id without relying on some shady substring busniess on that string?</p>