title: JavaFX - handle MouseEntered event on a button (with fxml)
body: <p>I'm trying to learn event handling and made an example with an fxml button that looked like that:</p>
  
  <pre><code>&lt;Button fx:id="button" onAction="#Handle"&gt;
  </code></pre>
  
  <p>and the following handler method in my controller:</p>
  
  <pre><code>@FXML
   private void Handle () {
  
      btn_welcome.setOnMouseClicked((event) -&gt; {
  
          System.out.println("test");
  
      });
  </code></pre>
  
  <p>So far this works fine. Now I would like to handle the event of entering the button with the mouse. I tried</p>
  
  <pre><code>@FXML
   private void Handle () {
  
      btn_welcome.setOnMouseEntered((event) -&gt; {
  
          System.out.println("test");
  
      });
  </code></pre>
  
  <p>but it doesn't seem to work.</p>