| This version just sets up a "Hello, Web!" applet. The only routine required for an Applet to actually do something is the paint routine, so that's all that I provide here. |
import java.awt.*;
import java.applet.Applet;
public class Life extends Applet
{
public void paint (Graphics g)
{
g.drawString ("Hello, Web!", 40, 20);
g.drawRect (35, 3, 80, 25);
}
}