Advertisement
Guest User

ha gaaaaaay

a guest
Nov 27th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. private void logonRun() {
  3. boolean finished = false;
  4. do {
  5. switch (logOnMenu.choice()) {
  6. case 1:
  7. if (projectMenuSystem.pupilLoginMenu()) { //this says if the method “pupilLoginMenu” allows it then continue.
  8.  
  9. logOnMenu.setVisible(false);
  10. studenthomeRun();
  11. }
  12. break;
  13.  
  14. case 2:
  15. if (projectMenuSystem.teacherLoginMenu()) { //this says if the method “teacherLoginMenu” allows it then continue.
  16.  
  17. logOnMenu.setVisible(false);
  18. teacherhomeRun();
  19. }
  20. break;
  21. case 3:
  22. logOnMenu.setVisible(false);
  23. projectMenuSystem.quit();
  24. break;
  25.  
  26. } // end of switch
  27. } while (!finished);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement