UIManager.put("OptionPane.messageForeground", Color.GREEN);
int n = JOptionPane.showOptionDialog(this, "Are you sure?",
"Account Deletion", JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
if (n == JOptionPane.YES_OPTION) {
DeleteRequestMessage drm = new DeleteRequestMessage();
drm.setClientId(getCore().getPlayerId());
getCore().getNetwork().sendMessage(drm);
}
System.out.println(n);
}