@Override
		public void actionPerformed(ActionEvent e) {
			if (e.getSource() == yesButton) {
				try {
					//Removes the Notification from the notification Array in currentProject
					Main.currentProject.removeNotification(Main.currentProject.getNotification(getEvent().getEventID()));

					Main.currentProject.getStatus(getEvent().getEventID(), Main.currentProject.getLoggedInPerson().getUsername()).setStatus(AttendanceStatusType.ATTENDING);
					Main.currentProject.updateAttendanceStatus(Main.currentProject.getStatus(getEvent().getEventID(), Main.currentProject.getLoggedInPerson().getUsername()));
				} catch (ConnectException e1) {
					
					e1.printStackTrace();
					
				} catch (IOException e1) {
					
					e1.printStackTrace();
					
				} catch (ParseException ef) {
					// TODO Auto-generated catch block
					ef.printStackTrace();
				}
//				closeWindow();
				Main.currentMainFrame.notificationFuck();
				frame.dispose();
				
			}
			else if (e.getSource() == noButton) {
				
				//Participant declined, all users will get notified
				Main.currentProject.getNotification(getEvent().getEventID()).setType(NotificationType.PARTICIPANT_DECLINED);
				
				//henter statusen
				AttendanceStatus s = Main.currentProject.getStatus(getEvent().getEventID(), Main.currentProject.getLoggedInPerson().getUsername());
				
				//setter statusen
				s.setStatus(AttendanceStatusType.NOT_ATTENDING);
				try {
					//oppdaterer statusen
					Main.currentProject.updateAttendanceStatus(s);
				} catch (ConnectException e1) {
					e1.printStackTrace();
				} catch (IOException e1) {
					e1.printStackTrace();
				} catch (ParseException ef) {
					// TODO Auto-generated catch block
					ef.printStackTrace();
				}
				
//				closeWindow();
				Main.currentMainFrame.notificationFuck();
				frame.dispose();
			}
			else if (e.getSource() == cancelButton) {
				closeWindow();
				frame.dispose();
			}
		}