I am programming a JavaFX app for windows and want to see an app icon in these situations
- shortcut icon (on desktop, windows start menu)
- taskbar icon (even when the app is pinned to the task-bar)
- (optional) the .exe-icon
The following code seems to do its job quite nice, but when the app is running and I press right to the taskbar to choose "pin this program" the default coffee cup is shown again. The cup is shown in the moment when the taskbar-item is right-clicked -.-
visibleStage.getIcons().add(new Image(this.getClass().getResourceAsStream("JavaFXApp.png")));
I tried to build the app by configuring the Artifact in IntelliJ (JavaFX-plugin) and I also deployed the app with the javafx-maven-plugin...
I also followed some instructions I found in the net and here on stackoverflow, but nothing really helps (see here to get an idea, what I tried). Building the app by Ant doensnt work right now, IntelliJ gives a lot of errors using this build tool.
Thanks in advance.
EDIT: It's getting silly.. After zooming in the output folder the correct .ico of the .exe will be shown. Inconstancy at it's best.
Here the half-working config: