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