Ejemplo n.º 1
0
 /** Transforms the login screen into a dialog for inputting a new password. */
 protected void changeModeNewPassword() {
   Object passwordScreen = ui.loadComponentFromFile(XML_NEW_PASSWORD, this);
   Object notice = ui.find(passwordScreen, "noticeTextArea");
   String text = getI18NString("password.new.notice");
   text +=
       "\n -" + settings.getPasswordLength() + " " + getI18NString("admin.security.pass.length");
   if (settings.isCaseRequired()) {
     text += "\n -" + getI18NString("admin.security.pass.letters");
   }
   if (settings.isNumberRequired()) {
     text += "\n -" + getI18NString("admin.security.pass.numbers");
   }
   if (settings.isSymbolRequired()) {
     text += "\n -" + getI18NString("admin.security.pass.symbols");
   }
   ui.setText(notice, text);
   Object passwordBox = ui.find(passwordScreen, "passwordBox1");
   ui.removeAll(mainPanel);
   ui.add(mainPanel, passwordScreen);
   ui.setFocus(passwordBox);
 }