JavaFX. Set different icons for the title bar and the operating system task bar
Is there a way in JavaFX to set different application icons for the title bar and for the operating system task bar? The problem is that the icon shown in the system task bar is much bigger compare to the icon in the title bar and they cannot be re-sized properly by the system. I would like to use different images for the different icon sizes. Similar to what you do in an .ico file. If I call stage.getIcons().add(...) two times, the former image will be always used for both bars. I was also not able to use an already existing .ico file (that supports different sizes) for this purposes. There