public void checkCurrentPanel() { String currentPanelName = this.view.getCurrentPanelName(); if (!currentPanelName.equals(SmartTestingView.INITIAL_PANEL)) { this.view.setBackButtonEnabled(true); } switch (currentPanelName) { case SmartTestingView.LOGIN_PANEL: if (facialThread == null && !threadStarted) { this.view.createFacialLoginFrame(); facialThread = this.view.getFacialUpdater(); facialThread.start(); threadStarted = true; } break; case SmartTestingView.REGISTRATION_PANEL: if (facialThread == null && !threadStarted) { this.view.createFacialRegistrationFrame(); facialThread = this.view.getFacialUpdater(); facialThread.start(); threadStarted = true; } break; case SmartTestingView.FACE_LOGIN_PANEL: if (facialThread != null && threadStarted) { this.view.setLocationFacialCapture(); this.view.showFacialFrame(); } break; case SmartTestingView.FACE_REGISTRATION_PANEL: if (facialThread != null && threadStarted) { this.view.setLocationFacialCapture(); this.view.showFacialFrame(); } break; case SmartTestingView.INITIAL_PANEL: this.view.setBackButtonEnabled(false); break; case SmartTestingView.KEYSTROKE_LOGIN_PANEL: keystrokeProc.userLoggingIn(); // grabs the data stored in the model this.view.getNextButton().setText("Finish"); break; case SmartTestingView.KEYSTROKE_REGISTRATION_PANEL: this.view.getNextButton().setText("Finish"); break; case SmartTestingView.SUCCESSFUL_LOGIN: disableFlowButtons(); break; case SmartTestingView.SUCCESSFUL_REGISTRATION: disableFlowButtons(); break; } }