title: Where do I store files such as images in a Java project?
body: <p>I'm trying to access a .jpg file to use as a background like this:</p>
  
  <pre><code>JLabel label = new JLabel(new ImageIcon("star_wars.jpg"));;
  </code></pre>
  
  <p>If I change the path to the picture to a directory on my computer that has the file, it works, but I want to give this program out, which means that it will only show up on my PC. I've tried storing it in multiple areas in the project itself, and haven't had any luck. Its currently in a source folder called resources. What should I do?</p>