@Override
	public void actionPerformed(ActionEvent event) {
		if(event.getSource() == open){
			JFileChooser fc = new JFileChooser();
			fc.setFileFilter(new FileNameExtensionFilter("Text Files (*.txt)", "txt"));
			int val = fc.showOpenDialog(textArea);
			if(val == JFileChooser.APPROVE_OPTION){
				currentFile = fc.getSelectedFile();
				String text = StringUtils.getContents(currentFile);
				textArea.setText(text);
			}
		}else if(event.getSource() == save){
			if(currentFile != null){
				save(textArea.getText(), currentFile);
			}else{
				saveAs();
			}
		}else if(event.getSource() == saveAs){
			saveAs();
		}
	}