🔒 Locked
Java Icons
Advertisement
Original Post
For creating an exe file with your own icon you can use Launch4J.
Quote:
Original post by Fuji
The icon I speak of is the small one at the top of the window. I don't care too much about an exe icon as this since I've already gotten it to display. I'm just unsure as to why the image only displays while I run it from NetBeans.
Post the loading code. Maybe there is a problem loading the icon. It is included in your jar? Are you using getResourceAsStream() or similar method?
I had this problem in eclipse, what you have to do is add the images to the build path, or simply place them in the same folder as the source code, so then they will actually be included in the jar. Then you need to load the image like so:
URL imageURL = getClass().getResource("icon.gif");icon = new ImageIcon(imageURL);
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement