title: Own minimize button with effect
body: <pre><code>@FXML
  void minimize(MouseEvent event) {
      Stage stage=(Stage) iconMinimize.getScene().getWindow();
      stage.setIconified(true);
  }
  </code></pre>
  
  <p>I have an icon that minimizes my program by mouse click. For example, when I minimize Windows for a program, you can see how the program works with an effect. The program slowly moves back to the taskbar. I would like to have such an effect too. If I do that with the code from the top, the program is right in the system tray. How do I get such an effect?</p>