import java.applet.Applet; import java.awt.Graphics; import java.awt.Image; public class ImageApplet extends Applet { Image im; public void init() { im = getImage(getDocumentBase(), "image.jpg"); } public void paint(Graphics g) { g.drawImage(im, 0, 0, this); } }