/**
* PreferencesForm definition
*/
public void init() {
addFormElement("heading1", new TitleElement("form.please.enter.old"));
addFormElement(PASSWORD_OLD, new PasswordElement("form.password.old", 20, 128));
getPasswordElement(PASSWORD_OLD).setMandatory(true);
addFormElement("spacer1", new SpacerElement(false, true));
addFormElement("heading2", new TitleElement("form.please.enter.new"));
addFormElement(PASSWORD_NEW1, new PasswordElement("form.password.new1", 20, 128));
getPasswordElement(PASSWORD_NEW1).setMandatory(true);
addFormElement(PASSWORD_NEW2, new PasswordElement("form.password.new2", 20, 128));
getPasswordElement(PASSWORD_NEW2).setMandatory(true);
addSubmitKey("save","save");
setCancelButton();
}