1import java.applet.Applet;
2import java.awt.*;
3
4public
5class ImageTest extends Applet {
6
7 Image image;
8
9 public
10 void init() {
11 image = getImage(getDocumentBase(),
12 getParameter("image"));
13 }
14
15 public
16 void destroy() {
17 image.flush();
18 }
19
20 public
21 void paint(Graphics g) {
22 g.drawImage(image,0,0,this);
23 }
24
25 public
26 void update(Graphics g) {
27 paint(g);
28 }
29}