title: How to get the selected TableView using multiple TableViews
body: <p>I'm building a timetable with javafx and I'm using 5 TableViews, each of them for one day of the week (Monday - Friday).
  I want to delete a item from a TableView with a Button.
  It is no problem for me to delete a Item from one specific TableView. But I want the Button to work for all the TableViews.</p>
  <p>So my question is: Is there a method to get the selected TableView?
  Not just the selected Item from one TableView.</p>
  <pre><code>@FXML public void fachLoeschen() {
      TableView&lt;Fach&gt; tableview = new TableView&lt;Fach&gt;();
      //tableview = the TableView in which the selected Item is
          
      int selectedIdx = tableview.getSelectionModel().getSelectedIndex();
      if (selectedIdx==-1)return;
      Fach fach = tableview.getSelectionModel().getSelectedItem();
      var alert = new Alert(Alert.AlertType.CONFIRMATION, &quot;Are you sure you want to delete: &quot;+fach.getFach()+ &quot; ?&quot;, ButtonType.YES, ButtonType.NO);
      if (alert.showAndWait().orElse(ButtonType.NO) == ButtonType.YES) tableview.getItems().remove(selectedIdx);
  }
  </code></pre>
  <p>this is the code for the Method. The word 'fach' (i'm german) stands for the course that is put in the Timetable.</p>