title: I can't get images to show up in Eclipse
body: <p>I am fairly new to using Swing and I thought that in Eclipse all I would have to do is put an image file into the SRC directory and the program would have access to it.  Of course this is not the case.  The only way the image is accessed is by supplying the whole "C:" filename.  I tried putting it into a sub directory and added the folder to the build path.  I thought that would work.</p>
  
  <p>My program is currently called "PullingMyHairOut" because that is exactly what I am doing.  If you answer, please assume that I have no idea of the internal workings of Eclipse because that isn't far from the truth.</p>
  
  <pre><code>import java.awt.BorderLayout;
  import javax.swing.ImageIcon;
  import javax.swing.JButton;
  import javax.swing.JFrame;
  import javax.swing.JLabel;
  
  
  public class PullingHairOut extends JFrame{
      ImageIcon img = new ImageIcon("us.jpg");
      JLabel label = new JLabel(img);
  
      public PullingHairOut(){
          setSize(640,480);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          add(label,BorderLayout.CENTER);
          add(new JButton("Help"),BorderLayout.SOUTH);
          setVisible(true);
      }
  
      public static void main(String[] args) {
          PullingHairOut main = new PullingHairOut();
      }
  }
  </code></pre>