title: Can't Change Default Java Image (JFrame.setIconImage)
body: <p>I am trying to change the icon of the Java application but nothing seems to work.</p>
  <p>I am trying to get image from resources path using:</p>
  <pre><code>getClass().getResource(&quot;/AppIcon.png&quot;)
  </code></pre>
  <p>Sometimes I get an error like URL not found.</p>