FileDocCategorySizeDatePackage
DoodlePad.javaAPI DocExample2204Mon May 01 14:42:00 BST 2000None

DoodlePad

public class DoodlePad extends JFrame

Fields Summary
Constructors Summary
public DoodlePad()

    super("DoodlePad");
    Container content = getContentPane(  );
    content.setLayout(new BorderLayout(  ));
    final DrawPad drawPad = new DrawPad(  );
    content.add(drawPad, BorderLayout.CENTER);
    JPanel p = new JPanel(  );
    JButton clearButton = new JButton("Clear");
    clearButton.addActionListener(new ActionListener(  ) {
      public void actionPerformed(ActionEvent e) {
        drawPad.clear(  );
      }
    });
    p.add(clearButton);
    content.add(p, BorderLayout.SOUTH);
    setSize(280, 300);
    setLocation(100, 100);
    addWindowListener(new WindowAdapter(  ) {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
      }
    });
    setVisible(true);
  
Methods Summary
public static voidmain(java.lang.String[] args)

    new DoodlePad(  );