Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void logonRun() {
- boolean finished = false;
- do {
- switch (logOnMenu.choice()) {
- case 1:
- if (projectMenuSystem.pupilLoginMenu()) { //this says if the method “pupilLoginMenu” allows it then continue.
- logOnMenu.setVisible(false);
- studenthomeRun();
- }
- break;
- case 2:
- if (projectMenuSystem.teacherLoginMenu()) { //this says if the method “teacherLoginMenu” allows it then continue.
- logOnMenu.setVisible(false);
- teacherhomeRun();
- }
- break;
- case 3:
- logOnMenu.setVisible(false);
- projectMenuSystem.quit();
- break;
- } // end of switch
- } while (!finished);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement