public void actionPerformed(ActionEvent e) { IAction nextAction = null; if (SOptionPane.OK_ACTION.equals(e.getActionCommand())) { nextAction = okAction; } else if (SOptionPane.CANCEL_ACTION.equals(e.getActionCommand())) { nextAction = cancelAction; } if (nextAction != null) { execute(nextAction, context); } } });
public void actionPerformed(ActionEvent e) { IAction nextAction = null; if (SOptionPane.YES_ACTION.equals(e.getActionCommand())) { nextAction = yesAction; } else if (SOptionPane.NO_ACTION.equals(e.getActionCommand())) { nextAction = noAction; } if (nextAction != null) { execute(nextAction, context); } }
public void actionPerformed(ActionEvent e) { IAction nextAction = null; if (SOptionPane.YES_ACTION.equals(e.getActionCommand())) { nextAction = yesAction; } else if (SOptionPane.NO_ACTION.equals(e.getActionCommand())) { nextAction = noAction; } else if (SOptionPane.CANCEL_ACTION.equals(e.getActionCommand())) { nextAction = cancelAction; } if (nextAction != null) { execute(nextAction, context); } }
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { if (performLogin()) { dialog.dispose(); updateControllerFrame(); execute(getStartupAction(), getInitialActionContext()); } else { SOptionPane.showMessageDialog(dialog, getTranslation(LoginUtils.LOGIN_FAILED, getLocale()), getTranslation("error", getLocale()), SOptionPane.ERROR_MESSAGE); } } });
performLogin(); updateControllerFrame(); execute(getStartupAction(), getInitialActionContext()); return;