if(winningId.intValue() == getId()) {
win = true;
}
}
log(msg);
MessageDialog md = new MessageDialog();
Point location = jFrame.getLocation();
Dimension size = jFrame.getSize();
Dimension dialogSize = md.getSize();
md.setLocation((int)(location.getX() + size.getWidth() / 2.0 - dialogSize.getWidth() / 2.0), (int)(location.getY() + size.getHeight()/2.0 - dialogSize.getHeight()/2.0));
if(win) {
md.setTitle(LanguageFactory.getInstance().getString(MessageId.youWon));
} else {
md.setTitle(LanguageFactory.getInstance().getString(MessageId.youLost));
}
md.display(msg, jFrame);
}