title: drawImage() method draws the image small regardless of image size
body: <p>I have an <code>imagepanel</code> class that draws an image on a JPanel. My problem is that the image appears to be very small inside the <code>jpanel</code>, and I dont know why. </p>
  
  <p>I have done all I could and searched the net and even some java books for this little problem but to no success. I really need some help on this one. </p>
  
  <p>I am extremely new to java.</p>
  
  <pre><code>    class Weapons extends JPanel {
      private Image weaponimage = weapon1.getImage();
  
      @Override
      protected void paintComponent(Graphics g) {
      super.paintComponent(g);
  
      if (image != null)
          g.drawImage(weaponimage, 0, 0, getWidth(), getHeight(), this);
     }
     }
  </code></pre>
  
  <p>that's the image class.</p>