title: Add images to JButton in Eclipse
body: <p>I am a new programmer and have just started using Eclipse. Previously, I used JGRASP and when I wanted to add an image to a button all I did was to create an <code>Image</code> folder within the class's folder and write: </p>
  
  <p><code>setIcon(newImageIcon(this.getClass().getResource("/Images/name.png")));</code>  </p>
  
  <p>I tried the same thing with Eclipse but I get a <code>main:NullPointerException</code> error.<br>
  I already read another post and added a <code>source folder</code> to my project named <code>Images</code> but nothing changed.  The following is the code segment I have an issue with:</p>
  
  <p><code>resetButton.setIcon(newImageIcon(this.getClass().getResource("/Images/helpIcon.png")));</code></p>