FileDocCategorySizeDatePackage
Quad.javaAPI DocExample6182Tue Dec 12 19:00:00 GMT 2000None

Quad

public class Quad extends JApplet

Fields Summary
protected static JLabel
label
QuadPanel
quadPanel
Constructors Summary
Methods Summary
public voidinit()

	//Initialize the layout.
        getContentPane().setLayout(new BorderLayout());
        quadPanel = new QuadPanel();
        quadPanel.setBackground(Color.white);
        getContentPane().add(quadPanel);
        label = new JLabel("Drag the points to adjust the curve.");
        getContentPane().add("South", label);
    
public static voidmain(java.lang.String[] s)

        JFrame f = new JFrame("Quad");
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {System.exit(0);}
        });
        JApplet applet = new Quad();
        f.getContentPane().add(applet, BorderLayout.CENTER);
        applet.init();
        f.pack();
        f.setSize(new Dimension(350,250));
        f.setVisible(true);