public void actionPerformed(ActionEvent e) {
    
    //###############
		if (e.getSource().equals(browseResumeButton)) {
			FileFilter filter = new FileNameExtensionFilter("TextFile", "txt");
	        JFileChooser chooser = new JFileChooser();
	        //chooser.addChoosableFileFilter(filter);
	        chooser.setFileFilter(filter);
	        
	        int returnVal = chooser.showOpenDialog(null);
	        
	        if(returnVal == JFileChooser.APPROVE_OPTION){
	            
	            File myFile = chooser.getSelectedFile();
	            String text = myFile + "";
	            
	            resumeField.setText(text);
	            resumeFilePath = text;
	            System.out.println("File path to resume: " + resumeFilePath);
	        }
		}
	//###############	
		if(e.getSource().equals(submitResumePanelButton)){
			
			//PARSE THE RESUME
			if(resumeFilePath!=null){
				TextFileParser tfp = new TextFileParser();
				Set<String> temp = tfp.parseTextFile(resumeFilePath);
				
				currentUser1.setUserKeywords( temp );
				currentUser1.setAreaOfInterest( (String)areaOfInterestBox.getSelectedItem() );
				currentUser1.setFullTime( fullTimeButton.isSelected() );
				currentUser1.setLevelOfEducation( (String)levelOfEducationBox.getSelectedItem() );
				
				currentUser1.printUserInfo();
				Scoring score = new Scoring();
				ArrayList<JobPosting> sortedJobs = score.findBestMatches(currentUser1, jobsList);
				//System.out.println("\n\n*********PARSE THE RESUME***************");
				//System.out.println("These are all of the unique words in the input resume: ");
				//tfp.printSet(temp);
				CardLayout cl = (CardLayout) (cards.getLayout());
				cl.show(cards, RESULTSPANEL);
			}
			else {
//				JFrame frame = new JFrame();
				System.out.println("No File selected...");
				JOptionPane.showMessageDialog(null, "No File Selected.");
				CardLayout cl = (CardLayout) (cards.getLayout());
				cl.show(cards, RESUMEPANEL);
			}
		}
				
//				currentUser.setUserKeywords( temp );
//				currentUser.setAreaOfInterest( (String)areaOfInterestBox.getSelectedItem() );
//				currentUser.setFullTime( fullTimeButton.isSelected() );
//				currentUser.setLevelOfEducation( (String)levelOfEducationBox.getSelectedItem() );
//				
//				currentUser.printUserInfo();
//				Scoring score = new Scoring();
//				ArrayList<JobPosting> sortedJobs = score.findBestMatches(currentUser, jobsList);
//				//System.out.println("\n\n*********PARSE THE RESUME***************");
//				//System.out.println("These are all of the unique words in the input resume: ");
//				//tfp.printSet(temp);
//			//END RESUME PARSING
			
		
	//###############	
		if(e.getSource().equals(backToResumePanelButton)){
			CardLayout cl = (CardLayout) (cards.getLayout());
			cl.show(cards, RESUMEPANEL);
		}
	//###############
//		if(e.getSource().equals(submit)){//information panel submit button
//			
//			currentUser1 = new User();//Initialize user object here because this is the first stage in the application process
//			
//			//I DONT THINK THESE VARIABLES NEED GLOBAL SCOPE!!!!!!!!!!!!!
//			
//			this.first = firstName.getText();
//			this.middle = middleName.getText();
//			this.last = lastName.getText();
//			this.fullName = this.first + this.middle + this.last;
//			this.day = (String) dayDOB.getSelectedItem();
//			this.month = (String) monthDOB.getSelectedItem();
//			this.year =  (String) yearDOB.getSelectedItem();
//			this.DOB = this.day + this.month + this.year;
//			this.email = emailField.getText();
//			this.phoneNumber = phoneNumberField.getText();
//	//###############
		if(e.getSource().equals(submit)){//information panel submit button
			
			currentUser1 = new User();//Initialize user object here because this is the first stage in the application process
			
			//I DONT THINK THESE VARIABLES NEED GLOBAL SCOPE!!!!!!!!!!!!!
			 this.first = firstName.getText();
			 this.middle = middleName.getText();
			 this.last = lastName.getText();
			 this.fullName = this.first + this.middle + this.last;
			 this.day = (String) dayDOB.getSelectedItem();
			 this.month = (String) monthDOB.getSelectedItem();
			 this.year =  (String) yearDOB.getSelectedItem();
			 this.DOB = this.day + this.month + this.year;
			 this.email = emailField.getText();
			 this.phoneNumber = phoneNumberField.getText();
			 
			 currentUser1.setFullName(first+ " " + middle + " " + last);
			 
			CardLayout cl = (CardLayout) (cards.getLayout());
			cl.show(cards, RESUMEPANEL);
		}
		if(e.getSource().equals(backToInfoButton)){
			CardLayout cl = (CardLayout)(cards.getLayout());
			cl.show(cards, INFOPANEL);
		}
		if(e.getSource().equals(clearInfoButton)){
			firstName.setText("");
			middleName.setText("");
			lastName.setText("");
			emailField.setText("");
			phoneNumberField.setText("");
//			CardLayout cl = (CardLayout)(cards.getLayout());
//			cl.show(cards, INFOPANEL);
		}
    }