super(msg); addMouseListener(this);
// We'll just use the listenerList we inherit from JComponent listenerList.add(ActionListener.class, l);
Object[] listeners = listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i--) { if (listeners[i] == ActionListener.class) { ((ActionListener)listeners[i+1]).actionPerformed(ae); } }
fireActionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "SecretMessage"));
listenerList.remove(ActionListener.class, l);