Set Icon Image problem in Jar file

Posted by Mr CooL on Stack Overflow See other posts from Stack Overflow or by Mr CooL
Published on 2010-03-20T13:58:16Z Indexed on 2010/03/20 14:01 UTC
Read the original article Hit count: 375

Filed under:
|

The following code works when running the NetBeans IDE.

this.getFrame().setIconImage(Toolkit.getDefaultToolkit().getImage("PlagiaLyzerIcon.png"));

However, once it was built into Jar file, the icon was gone.

Anyone has idea what's the problem? I realized I've to put the icon image on the root directory, however, after compiling into JAR, the icon gone.

Thanks for any help..

© Stack Overflow or respective owner

Related posts about java

Related posts about jar