title: How can I display an image in the Applet?
body: <p>I have an image and I want to display it in the applet, The problem is the image wont display. Is there something wrong with my code?</p>
  
  <p>Thanks...</p>
  
  <p>Here's my code :</p>
  
  <pre><code>import java.applet.Applet;
  import java.awt.*;
  
  
   public class LastAirBender extends Applet
   {
  
   Image aang;
  
   public void init()
   {
  
    aang = getImage(getDocumentBase(), getParameter("images.jpg"));
   }
  
   public void paint(Graphics g) 
   {
  
      g.drawImage(aang, 100, 100, this);
   }
  
  }
  </code></pre>