private void changePassword() {
String currentPass = String.valueOf(fldCurrentPassword.getPassword());
try {
SecurityCentre sc = SecurityCentre.getInstance();
SecuredUser su = sc.login(sc.getUser().getUsername(), currentPass, false);
if (su != null) {
String newPass1 = String.valueOf(fldNewPassword1.getPassword());
String newPass2 = String.valueOf(fldNewPassword2.getPassword());
if (newPass1.length() == 0 || newPass2.length() == 0) {
DcSwingUtilities.displayMessage("msgPleaseEnterNewPassword");
} else if (newPass1.equals(newPass2)){
sc.changePassword(su.getUser(), newPass1);
close();
} else {
DcSwingUtilities.displayMessage("msgPasswordsDoNotMatch");
}