.getString("sureDeleteAccountPart2"), resources
.getString("deleteAccount"), JOptionPane.YES_NO_OPTION);
}
if (result == 0) {
AccountManager manager = BuddyList.getInstance().getConnection()
.getAccountManager();
// go ahead and delete the account
try {
manager.deleteAccount();
} catch (XMPPException e) {
String errorMessage = "";
errorMessage = resources.getString("xmppError"
+ e.getXMPPError().getCode());