import java.applet.Applet; 
import java.awt.*; 

    public class CircleApplet extends Applet
      { 
      public void paint (Graphics g) 
        {
        int x, y;

        x = size().width - 1;          // Width of the applet.
        y = size().height - 1;         // Height of the applet.

        g.drawLine (0, 0, x, y);

        g.drawOval (0, 0, x, y);

        g.drawRect (0, 0, x, y);
        } 
      } 

