import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.event.EventListenerList; public class PunchingBag { protected EventListenerList listenerList = new EventListenerList(); /** * Adds an ActionListener to the button. * @param l the ActionListener to be added */ public void addButtonListener(ButtonListener l) { listenerList.add(ButtonListener.class, l); } public void setLED(byte x, byte y, byte intensity) { } }