
import java.awt.*;

public class GraphicsTest {

   public static void main(String args[]) {
      TestFrame f = new TestFrame();  // create a frame
      f.init();      // initialize it
      f.show();      // show it -- this calls f.paint()
   }
}

class TestFrame extends Frame {

   public void init() {
      setSize(400,400);  // you MUST set the size
   }

   // draw some ovals
   //   NOTE: paint() is always called automatically
   //         by other methods
   public void paint (Graphics page) {
      page.drawOval(50,50, 300,300);
      page.fillOval(125,125,50,50);
      page.fillOval(225,125,50,50);
   }
}

