title: Javafx Icon after Maven Deployment
body: <p>I have developed a stand-alone Javafx application, I want to change the desktop icon(the one you generally see in desktop) from the default to a custom one when I deploy(package command) my app trough Maven. </p>
  
  <p>I have already written the following code: </p>
  
  <pre><code>        Image icon = new Image (getClass().getResourceAsStream("/images/icon.png"));
          stage.getIcons().add(icon);
  </code></pre>
  
  <p>But this only changes the taskbar icon and not the desktop one.</p>
  
  <p>How can I change the desktop icon?</p>