import java.awt.event.*; /** * ButtonListener reacts to clicks on the sample button. * CSE 143 Sp03 demo. * * @author Hal Perkins * @version 4/17/03 */ public class ButtonListener implements ActionListener { /** * Respond to events generated by the button. * @param e the event created by the button when it was clicked. */ public void actionPerformed(ActionEvent e) { System.out.println(e.getActionCommand()); } }