title: JavaFX - Button to minimize the stage
body: <p>I have an undecorated stage in a JavaFX Application. In order to minimize it I need a minimize button. I created my layout in an <code>fxml document</code> which has a <code>minimize button</code>, but when I try to minimize using the <code>action listener</code> for this button located inside the controller using <code>stage.setIconified(true)</code>, it cannot find stage.</p>
  
  <p>How can I find a reference to the stage in the controller class?</p>