Advertisement
pastetumlum

Untitled

Jul 17th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. @Override
  2.     public void update(Observable arg0, Object arg1) { 
  3.         if (mainModel.isUpdatedIndex()) {
  4.             showQuestion();
  5.         }
  6.         updateView();
  7.     }
  8. private void showQuestion() {
  9.         // hiển thị câu hỏi (QuestionPanel)
  10.         extensionPanel.getQuestionPanel().setVisible(true);
  11.         // cập nhật index câu hỏi
  12.         extensionPanel.getQuestionPanel().updateQuestion();
  13.         //ngăn chặn di chuyển phím
  14.         inGameFrame.setFocusable(false);                   
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement