send.setEnabled(true);
}
}
if (m instanceof PasswordResetResponseMessage) {
PasswordResetResponseMessage prrm = (PasswordResetResponseMessage) m;
if (prrm.getResponseType() == IConstants.ResponseType.ok) {
UIManager.put("OptionPane.background", Color.BLACK);
UIManager.put("OptionPane.JButton.setForground", Color.BLACK);
UIManager.put("Panel.background", Color.BLACK);
UIManager.put("OptionPane.messageForeground", Color.GREEN);
JOptionPane.showMessageDialog(this, "Sending a new Password was successful!",
"Check Mail!", JOptionPane.ERROR_MESSAGE);
}
if (prrm.getResponseType() == IConstants.ResponseType.failed) {
errorDialog("Sending a new password failed! \n\n"
+ "Perhaps you didn't set your email address or the typed "
+ "username doesn't exist?");
this.setGameScreenFocus(lName);
}