//SimpleButton.java package util; import java.awt.*; import java.awt.event.*; public class SimpleButton extends Button { public SimpleButton (String title) { super(title); // set up for interaction addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { SimpleButton.this.activated(); } }); } // override the following to provide meaningful reactions // by default they do nothing public void activated () {} }