Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void update(Observable arg0, Object arg1) {
- if (mainModel.isHasAnswerTrue()) {
- updateAfterAnswer();
- }
- if (mainModel.isHasAnswerFalse()) {
- updateAfterAnswer();
- }
- updateView();
- }
- //cập nhật sau khi trả lời câu hỏi
- private void updateAfterAnswer() {
- //ẩn bảng câu hỏi
- getExtensionPanel().getQuestionPanel().setVisible(false);
- //cho phép di chuyển nút
- getInGameFrame().setFocusable(true);
- getInGameFrame().requestFocus();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement