if (ret == JOptionPane.OK_OPTION) {
if (okCmd != null) {
try {
char[] pw = passwdField.getPassword();
okCmd.exec(new CmdArgs(new Object[] { pw }));
for (int i = 0; i < pw.length; i++) {
pw[i] = '\0';
}
} catch (Exception e) {
Log.error(getClass().getName(), "", e);
}
}
} else {
if (cancelCmd != null) {
try {
cancelCmd.exec(new CmdArgs(new Object[] {}));
} catch (Exception e) {
Log.error(getClass().getName(), "", e);
}
}
}