title: Loading an Image using getImage
body: <p>Here is a simple applet to try loading an image but it shows a blank window</p>
  
  <pre><code>import java.applet.*;
  import java.awt.*;
  
  public class Mama extends Applet {
  
  int width, height;
  Image img;
  
  @Override
  public void init(){
      img = getImage(getCodeBase(), "C:\\Users\\......\\Backgound.png");
  }
  
  @Override 
  public void paint(Graphics g){
      g.drawImage(img, 0, 0, this);
    }
  }
  </code></pre>
  
  <p>I copied the path of the image from the directory, what am I doing wrong?</p>