pastetumlum

Untitled

Jul 16th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. public class MainView implements Observer {
  2.     @Override
  3.     public void update(Observable arg0, Object arg1) {
  4.         if (mainModel.isHasMove()) {
  5.             updateView();
  6.         }
  7.     }
  8.    
  9.     private void updateView() {
  10.         boardPanel.updateBoard();
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment