title: How to get the name of a MenuItem which is clicked in a MenuButton
body: <p>I'm trying to get the name of a MenuItem and then set a Label text to the name of this clicked MenuItem in a MenuButton. How can i do this? The MenuItems getting the id's from a String in a DB.</p>
  
  <p>Variables:</p>
  
  <pre><code>@FXML
  private MenuButton projektAuswahl;
  
  MenuItem item;
  </code></pre>
  
  <p>Creating new MenuItem:</p>
  
  <pre><code>ResultSet rs = stmt.executeQuery(sqlQuery);
  
  while (rs.next()) {
      item = new MenuItem(rs.getString(1));
      item.setId(rs.getString(1));
      projektAuswahl.getItems().add(item);
  }
  </code></pre>
  
  <p>set the Label text:</p>
  
  <pre><code>private void setProjectLabel() {
          //projectnameLabel.setText(item.getText()); //not working..
      }
  </code></pre>
  
  <p>How can i recognize which MenuItem is clicked?</p>