ActionEvent event = new ActionEvent(this, 0, getText());
ActionEvent event = new ActionEvent(this, 0, actionCommand == null ? getText() : actionCommand);
  protected void fireActionPerformed()  {    ActionEvent event = new ActionEvent(this, 0, getText());    ActionListener[] listeners = getActionListeners();    for (int index = 0; index < listeners.length; ++index)      listeners[index].actionPerformed(event);  }