Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void update(Observable arg0, Object arg1) {
- if (mainModel.isUpdatedIndex()) {
- showQuestion();
- }
- updateView();
- }
- private void showQuestion() {
- // hiển thị câu hỏi (QuestionPanel)
- extensionPanel.getQuestionPanel().setVisible(true);
- // cập nhật index câu hỏi
- extensionPanel.getQuestionPanel().updateQuestion();
- //ngăn chặn di chuyển phím
- inGameFrame.setFocusable(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement