JavaFX stage icon

2019-06-13 16:31发布

I'm trying to deploy a JavaFX application with Eclipse/Ant + InnoCompiler. I'm able to set an icon for the stage and it is correctly visualized on the application bar when I run the application from Eclipse. However when I deploy the app and I install it, the stage icon is replaced by an horrible java gray icon. I want to remark that the installer icon (set by Inno script) works great. How can I fix it?

The icon is set with:

topStage.getIcons().add(new Image(getClass().getResourceAsStream("css/myImage.png")));

Thanks in advance.

0条回答
登录 后发表回答