public void setFrame(String panel){
		switch(panel){
			case "login":
				frame.remove(curPanel);
				frame.add(login);
				login.refresh();
				frame.validate();
				frame.repaint();
				curPanel=login;
				frame.setSize(425,300);
				break;
			case "createUser":
				frame.remove(curPanel);
				frame.add(createUser);
				createUser.refresh();
				frame.validate();
				frame.repaint();
				curPanel=createUser;
				frame.setSize(425,300);
				break;
			case "createMeeting":
				frame.remove(curPanel);
				frame.add(createMeeting);
				createMeeting.refresh();
				createMeeting.setYear(year);
				createMeeting.setMonth(month);
				createMeeting.setDay(day);
				frame.validate();
				frame.repaint();
				curPanel=createMeeting;
				frame.setSize(600, 350);
				break;
			case "editMeeting":
				frame.remove(curPanel);
				frame.add(editMeeting);
				editMeeting.refresh();
				frame.validate();
				frame.repaint();
				curPanel=editMeeting;
				frame.setSize(660, 360);
				break;
			case "mainScreen":
				frame.remove(curPanel);
				frame.add(mainScreen);
				mainScreen.refresh();
				mainScreen.setDatePicked();
				mainScreen.setNewsfeed();
				mainScreen.setNotifications();
				frame.validate();
				frame.repaint();
				curPanel=mainScreen;
				frame.setSize(700, 400);
                mainScreen.setDatePicked();
                mainScreen.setNewsfeed();
                mainScreen.setNotifications();;
				break;
			case"showMeeting":
				frame.remove(curPanel);
				frame.add(showMeeting);
				showMeeting.refresh();
				frame.validate();
				frame.repaint();
				curPanel=showMeeting;
				frame.setSize(600, 360);
				break;
			case "weekCalendar":
				frame.remove(curPanel);
				frame.add(weekCalendar);
				weekCalendar.refresh();
				frame.validate();
				frame.repaint();
				curPanel=weekCalendar;
				frame.setSize(700, 400);
				break;
			
		}
	}