Java - 设置导出的jar文件图标 [英] Java - setting the exported jar files icon
问题描述
我不确定我是否需要此代码,但我知道如何设置应用程序的图标只需
I'm not sure if i need code for this but i know how to set the icon of the app it simply
this.setIconImage(Toolkit.getDefaultToolkit().getImage(Skin_Stealer_Pro.class.getResource("/me/codplaymakers/com/icon.PNG")));
但我现在想如何设置导出的jar文件图标
例如,如果我只是导出文件在我的桌面上,图标将是一个咖啡杯,背后有某种文件,我想做一个名为我的世界的产品,并为应用程序添加了一个图标。
任何人现在如何做这个?
因为网络都把我带到我刚刚发布的代码中我不需要,就像在C#中一样,你可以在属性面板中设置图标,但我在java中如何做到这一点?
But I wanna now how to set the exported jar files icon
for example if i just export the file to my desktop the icon will be a coffee cup with some sort of document thingy behind it, I wanna do like a product called "Minecraft" has done and put a icon for the application.
dose anyone now how to do this?
because the web all takes me to the code i just posted which I don't need, like in C# you can just set the icon in the properties panel but how I do this in java?
推荐答案
检查:
http://www.vogella.com/tutorials.html [ ^ ]
漂亮好东西。收藏它。
Check This:
http://www.vogella.com/tutorials.html[^]
Pretty good stuff. Bookmark it please.
这篇关于Java - 设置导出的jar文件图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!