public void actionPerformed(ActionEvent event)
	{
		String actionCommand = event.getActionCommand();
		
		if (actionCommand.equals("BROWSE")) {
			int returnVal = browse.showOpenDialog(null);
			if (returnVal == JFileChooser.APPROVE_OPTION) {
				fileLoc.setText(browse.getSelectedFile().getPath());
				searchButton.setEnabled(true);
			}
		}
		
		if (actionCommand.equals("SEARCH")) {
			Thread newThread = new Thread(new Runnable() {
	
				public void run() {
					
					manager.folderLocation(fileLoc.getText());
					
					if (fileLoc.getText().equals("")) {
						errorHasOccured("Please enter a directory.", "Error", JOptionPane.ERROR_MESSAGE);
						return;
					}
					
					int checkError = manager.searchFolder();
					
					if (checkError == 0) {
						errorHasOccured("The location - " + fileLoc.getText() + " has caused an error, please try again.", "Error", JOptionPane.ERROR_MESSAGE);
						return;
					}
					
					if (folderData!=null) {
						content.remove(folderData);
						folderData = null;
					}
					
					folderData = generateTable();
					content.add(folderData);

					totalLabel.setText(SortOperations.sizeParser(manager.totalSize()) + " in total.");
					totalLabel.setVisible(true);
					
				}
			});
			
			searchProcess = new JProgressBar(0, 10);
			searchProcess.setStringPainted(true);
			searchProcess.setValue(0);
			searchProcess.setLocation(30, 480);
			content.add(searchProcess);
			searchProcess.setVisible(true);
			newThread.run();
			
		}
		
		if (actionCommand.equals("EXIT")) {
			System.exit(0);
		}
		
		if (actionCommand.equals("ABOUT")) {
			String aboutText = "Download File Manager Alpha v0.1\nAuthor: Anthony Baker\nContact: abake40@gmail.com";
			errorHasOccured(aboutText, "About", JOptionPane.INFORMATION_MESSAGE);
		}
		
	}