FileDocCategorySizeDatePackage
ShapesDemo.javaAPI DocExample5022Tue Dec 12 18:59:06 GMT 2000None

ShapesDemo

public class ShapesDemo extends JApplet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

        ShapesPanel shapesPanel = new ShapesPanel();
        getContentPane().add(shapesPanel, BorderLayout.CENTER);
    
public static voidmain(java.lang.String[] args)

        JFrame f = new JFrame("ShapesDemo");
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });

        ShapesPanel shapesPanel = new ShapesPanel();
        f.getContentPane().add(shapesPanel, BorderLayout.CENTER);
        f.setSize(new Dimension(550, 200));
        f.setVisible(true);