title: Can not load the images in Java Swing when running from a .jar-file
body: <p>I can run my Java Swing application from Eclipse without problems. But when I run it from a .jar-file, the images fails to load.</p>
  
  <p>I load my images with:</p>
  
  <pre><code>setIconImage(Toolkit.getDefaultToolkit().
  getImage(getClass().getResource("../images/logo.png")));
  </code></pre>
  
  <p>How can I load the images so they work even when I'm running from a .jar-file?</p>
  
  <p>The images is in the same Jar-file, in the packet <code>com.example.images</code> and the class where they are used is in <code>com.example.gui.dialogs</code></p>