/** * Login to the application. */ @Override public void login() { if (performLogin()) { loginDialog.dispose(); updateControllerFrame(); execute(getStartupAction(), getStartupActionContext()); } else { loginFailed(loginDialog); } }
loginDialog.setVisible(true); } else { performLogin(); updateControllerFrame(); execute(getStartupAction(), getInitialActionContext());
/** * Creates the initial view from the root view descriptor, then a JFrame * containing this view and presents it to the user. * <p> * {@inheritDoc} */ @Override public boolean start(IBackendController backendController, Locale locale) { if (super.start(backendController, locale)) { Toolkit.getDefaultToolkit().getSystemEventQueue().push( new WaitCursorEventQueue(500)); CallbackHandler callbackHandler = getLoginCallbackHandler(); if (callbackHandler instanceof DialogCallbackHandler) { ((DialogCallbackHandler) callbackHandler) .setParentComponent(controllerFrame); } if (performLogin()) { displayControllerFrame(); execute(getStartupAction(), getInitialActionContext()); return true; } stop(); } return false; }