title: JavaFX button not working
body: <p>I started writing a simple music player, but when I tested it, I found that the button wasn't working.  I replaced the code in the button's event handler with a simple System.out.println("Got to button");, but it didn't write to the console.</p>
  
  <p>The fxID of the button is playButton.
  The @fxml declaration is:</p>
  
  <pre><code>@FXML
   private Button playButton;
  </code></pre>
  
  <p>Initialize:</p>
  
  <pre><code> @FXML
   public void initialize() {
      this.bindGuiComponentsToViewModel();
      this.setEventActions();
   }
  </code></pre>
  
  <p>SetEventActions:</p>
  
  <pre><code>private void setEventActions() {
      this.playButton.setOnAction(event -&gt; this.handlePlayAction());
  }
  </code></pre>
  
  <p>handler:</p>
  
  <pre><code>private void handlePlayAction() {
      System.out.println("got to play");
  }
  </code></pre>
  
  <p>I haven't been able to find anything through google for the past hour, I've tried making playButton.setDisable(false);, and nothing has worked so far.</p>
  
  <p>Any help is greatly appreciated!</p>