@Override
	public void actionPerformed(ActionEvent event) {
		
		if(event.getSource() == controller.addApplicantView.addButton) {
			try{
				Applicant applicant = new Applicant(AddApplicantPanel.getInstance().dateSourcedCB.getDate(), AddApplicantPanel.getInstance().dateProcessedCB.getDate(),
							AddApplicantPanel.getInstance().firstName_TF.getText().trim(), AddApplicantPanel.getInstance().lastName_TF.getText().trim(),
							AddApplicantPanel.getInstance().primaryNum_TF.getText().trim(), AddApplicantPanel.getInstance().secNum_TF.getText().trim(),
							AddApplicantPanel.getInstance().school_TF.getText().trim(), AddApplicantPanel.getInstance().lastPos_TF.getText().trim(),
							AddApplicantPanel.getInstance().jobClassCB.getSelectedItem().toString(), AddApplicantPanel.getInstance().lastComp_TF.getText().trim(),
							AddApplicantPanel.getInstance().email_TF.getText().trim(), AddApplicantPanel.getInstance().source_TF.getText().trim(),
							AddApplicantPanel.getInstance().specifics_TF.getText().trim(), AddApplicantPanel.getInstance().posEndorsed_TF.getText().trim(),
							AddApplicantPanel.getInstance().statusCB.getSelectedItem().toString(), AddApplicantPanel.getInstance().schedDateCB.getDate(),
							AddApplicantPanel.getInstance().schedTime_TF.getText().trim(), AddApplicantPanel.getInstance().schedOutcomeCB.getSelectedItem().toString(),
							AddApplicantPanel.getInstance().reschedDateCB.getDate(), AddApplicantPanel.getInstance().reschedTime_TF.getText().trim(),
							AddApplicantPanel.getInstance().reschedOutcomeCB.getSelectedItem().toString(), AddApplicantPanel.getInstance().recruiter_TF.getText().trim(),
							AddApplicantPanel.getInstance().clientName_TF.getText().trim(), AddApplicantPanel.getInstance().clientResultCB.getSelectedItem().toString(),
							AddApplicantPanel.getInstance().remarks_TA.getText().trim(), AddApplicantPanel.getInstance().actualRevenue_TF.getText().trim(),
							AddApplicantPanel.getInstance().cvPath_TF.getText().trim());
				System.out.println(applicant.getDateSourced());
				if(!isValidTime(applicant.getSchedTime()) || !isValidTime(applicant.getReschedTime()))
					throw new Exception();
				else{
					if(!applicantAlreadyExist(applicant)){
						applicant.addToDatabase();
						AddApplicantPanel.getInstance().clearFields();
					}
				}
			}catch(Exception e){
				JOptionPane.showMessageDialog(null, "Error!", "Error", JOptionPane.ERROR_MESSAGE);
			}
		}
		
		else if(event.getSource() == controller.addApplicantView.backButton) {
		}
	}