title: multiple FXML Label, single MouseEvent handler
body: <p>I have the following FXML structure:</p>
  
  <pre><code>&lt;AnchorPane fx:id="menuPane"&gt;
    &lt;children&gt;
       &lt;VBox&gt;
         &lt;children&gt;
           &lt;Label fx:id="Label1"&gt;   &lt;/Label&gt; 
           &lt;Label fx:id="Label2"&gt;   &lt;/Label&gt; 
           &lt;Label fx:id="Label3"&gt;   &lt;/Label&gt; 
  
           &lt;Label fx:id="Labeln"&gt;   &lt;/Label&gt;
         &lt;/children&gt;
       &lt;/VBox&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt; 
  </code></pre>
  
  <p>My question is: can I handle all the MOUSE_CLICKED events in one method, or do I need to write to every single label of them the following lambda? </p>
  
  <pre><code>LabelName.addEventHandler(MouseEvent.MOUSE_CLICKED, eventHandler-&gt;{});
  </code></pre>
  
  <p>For a couple Labels it is not a problem to write the lambda expressions, but when I start to get more labels, or if can/will add more Labels while the program running, I need a different approach.</p>
  
  <p>I found an option here in stackoverflow, but I do not know what is the "scene" in my positions, as I have loaded the <em>mainScreen.fxml</em> , and in the MainScreenController I do not know how to get the scene.</p>
  
  <pre><code>     scene.addEventFilter(MouseEvent.MOUSE_PRESSED, new EventHandler&lt;MouseEvent&gt;() {
          @Override
        public void handle(MouseEvent mouseEvent) {
         System.out.println("mouse click detected! " + mouseEvent.getSource());}
         });
  </code></pre>