title: Set Icon Image in Jar file
body: <p>The following code works fine when running on NetBeans.</p>
  
  <pre><code>this.getFrame().setIconImage(Toolkit.getDefaultToolkit().getImage("PlagiaLyzerIcon.png"));
  </code></pre>
  
  <p>However, once it was built into Jar file, the icon was gone.</p>
  
  <p>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.</p>
  
  <p>Thanks for any help ...</p>
  
  <p>Hi everyone, the problem was solved with the following code,</p>
  
  <pre><code> this.getFrame().setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getClassLoader().getResource("plagialyzer/resources/PlagiaLyzerIcon.png")));
  </code></pre>
  
  <p>It works once compiled into jar file. </p>