System.out.println("clear!"); dp.clear();
setLayout( new BorderLayout() ); add( "Center", dp = new DrawPad() ); Panel p = new Panel(); Button clearButton = new Button("Clear"); clearButton.addActionListener( this ); p.add( clearButton ); add( "South", p );