ensure that update to LogBookViewer is performed on EDT

master
melvin 2013-11-02 09:21:39 +08:00
parent 6d05fb4293
commit c3a2c0809b
1 changed files with 5 additions and 1 deletions

View File

@ -475,7 +475,11 @@ public class GameController implements ILogBookListener {
} else {
game.gotoLastUndoPoint();
}
gamePanel.getLogBookViewer().update();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
gamePanel.getLogBookViewer().update();
}
});
}
public void haltGame() {