/** * Action performed when the OK button is pressed. Validate the dialog's contents and register the * user with the server. */ protected void okAction() { try { this.model.validate(); UserManager.authenticateAndSaveUser((UserModel) model); status = OK_STATUS; dispose(); } catch (Exception e) { RegistryBrowser.displayError(e); } }