title: How to set application installer icon in JavaFX?
body: <p>I'm using the <a href="https://github.com/FibreFoX/javafx-gradle-plugin" rel="noreferrer">JavaFX-Gradle-plugin</a> to build the distribute-able binaries and the installer of a JavaFX application. When my application runs, I'm able to set the icon this way:</p>
  
  <pre><code>stage.getIcons().add(new Image(this.getClass().getResourceAsStream("/isotype.png")));
  </code></pre>
  
  <p>which correctly sets the icon for the running application:</p>
  
  <p><a href="https://i.stack.imgur.com/JMaY1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JMaY1.png" alt="enter image description here"></a></p>
  
  <p>as well as the task bar:</p>
  
  <p><a href="https://i.stack.imgur.com/4YfiP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4YfiP.png" alt="enter image description here"></a></p>
  
  <p>But how do I set the icons for the start menu:</p>
  
  <p><a href="https://i.stack.imgur.com/eVLeO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eVLeO.png" alt="enter image description here"></a></p>
  
  <p>and potentially other places:</p>
  
  <p><a href="https://i.stack.imgur.com/vc6N7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vc6N7.png" alt="enter image description here"></a></p>