import java.awt.*;
import java.applet.*;

        // Display a central OvalCanvas and a descriptive Label.
public class OvalApplet extends Applet {
    public void init(){
        // Use a BorderLayout rather than the default FlowLayout.
        setLayout(new BorderLayout());

        // Place a header label at the top.
        Label header = new Label("An Oval Applet",Label.CENTER);
        header.setBackground(Color.white);

        Canvas c = new OvalCanvas();
        c.setBackground(Color.white);
        // Give the canvas half the extent of this applet.
        Dimension size = getSize();
        c.setSize(size.width/2,size.height/2);

        add(header,"North");
        add(c,"Center");
    }
}
