// Ours UI update are ordered!For example:When matrix loading,we have to
// waiting for one grew and the up updated,then grow a new line and
// update again.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
GameRunningManager manager = (GameRunningManager) o;
ModelUpdateCaseEnum updateCase = (ModelUpdateCaseEnum) arg;
if (updateCase == ModelUpdateCaseEnum.LEVEL_PASSED) {
JOptionPane.showMessageDialog(mainFrame,
"You passed this level! Now level "
+ manager.getLevel() + "starts...");
}
logger
.info("The main view updated by game runing manager's new status");
}
});