Advertisement
pastetumlum

Untitled

Jul 17th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. @Override
  2.     public void update(Observable arg0, Object arg1) {
  3.         if (mainModel.isHasAnswerTrue()) {
  4.             updateAfterAnswer();
  5.         }
  6.         if (mainModel.isHasAnswerFalse()) {
  7.             updateAfterAnswer();
  8.         }
  9.         updateView();
  10.     }
  11. //cập nhật sau khi trả lời câu hỏi
  12. private void updateAfterAnswer() {
  13.         //ẩn bảng câu hỏi
  14.         getExtensionPanel().getQuestionPanel().setVisible(false);
  15.         //cho phép di chuyển nút
  16.         getInGameFrame().setFocusable(true);
  17.         getInGameFrame().requestFocus();
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement