EventListener[] ll = listenerList.getListeners(ActionListener.class); for (int i = 0; i < ll.length; i++) ((ActionListener)ll[i]).actionPerformed(e);
ActionListener[] listeners = getActionListeners();  for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(e);
  public void fireActionPerformed(ActionEvent e)  {    e.setSource(this);    EventListener[] ll = listenerList.getListeners(ActionListener.class);    for (int i = 0; i < ll.length; i++)      ((ActionListener)ll[i]).actionPerformed(e);  }