Here is an outline of our button applet: public class ButtonTest extends Applet implements ActionListener { private Button button; public void init() { button = new Button(...); button.addActionListener( this ); ... } public void actionPerformed(...) {...} } |