@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("Save")) {
			finish();
		} else if (e.getActionCommand().equals("Undo")) {
			undoredo(e.getActionCommand());
			setFocusOnTxtArea();
		} else if (e.getActionCommand().equals("Redo")) {
			undoredo(e.getActionCommand());
			setFocusOnTxtArea();
		} else if (e.getActionCommand().equals("Next")) {
			// getNext();
			wasLastInsertNext = true;
			moveInsert(1);
			setFocusOnTxtArea();
		} else if (e.getActionCommand().equals("Prev")) {
			// getPrev();
			wasLastInsertNext = false;
			moveInsert(0);
			setFocusOnTxtArea();
		} else if (e.getActionCommand().contains("Append")) {
			//call appendText function on the chars after 'append'
			//in the action command string to add that stuff
		}
	}