Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm not sure if i need code for this but i know how to set the icon of the app it simply

Java
this.setIconImage(Toolkit.getDefaultToolkit().getImage(Skin_Stealer_Pro.class.getResource("/me/codplaymakers/com/icon.PNG")));


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?
Posted
Comments
Richard MacCutchan 31-Jul-13 8:20am    
As far as I am aware jar files do not have a resource section that Windows Explorer can query for icons. You have to do it manually.

1 solution

Check This:

http://www.vogella.com/tutorials.html[^]

Pretty good stuff. Bookmark it please.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900