如何更改可执行jar文件图标? [英] How to change executable jar file icon?
本文介绍了如何更改可执行jar文件图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经能够使用此示例更改运行时图标
I have been able to change the runtime icon using this example like this
getFrame().setIconImage(Toolkit.getDefaultToolkit().getImage(getClass()
.getClassLoader().getResource("MyProject/resources/myIcon.png")));
但有没有办法告诉NetBeans使用myIcon.png作为可执行jar文件(MyProject / dist / MyProject.jar)图标?
but is there a way to tell NetBeans to use myIcon.png for the executable jar file (MyProject/dist/MyProject.jar) icon?
推荐答案
启动包装器是解决方案,我使用的是launch4j,一个跨平台的轻量级包装器
A launch wrapper is the solution, I use launch4j, a cross platform lightweight wrapper
这篇关于如何更改可执行jar文件图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文