Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainView implements Observer {
- @Override
- public void update(Observable arg0, Object arg1) {
- if (mainModel.isHasMove()) {
- updateView();
- }
- }
- private void updateView() {
- boardPanel.updateBoard();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment