public void actionPerformed(ActionEvent e) 
	{
		JButton source = (JButton)e.getSource();

		if(source.equals(executeButton))
			executeCode();
		else if(source.equals(saveCodeAsButton))
			saveCodeAs();
		else if(source.equals(saveCodeButton))
			saveCode();
		else if(source.equals(openExistingFileButton))
			openExistingFile();
		else if(source.equals(saveOutputButton))
			saveOutput();
		else if (source.equals(saveOutputAsButton))
			saveOutputAs();
		else if(source.equals(clearCodeAreaButton))
		{
			MainFrame.currCodeFile = null;
			MainFrame.codePanel.codeArea.setText("");
			notificationArea.setText("Cleared code area.");
		}
		else if(source.equals(clearOutputAreaButton))
		{
			MainFrame.currOutputFile = null;
			MainFrame.oPanel.outputArea.setText("");
			notificationArea.setText("Cleared output area.");
		}		
	}