@Override
	public void actionPerformed(ActionEvent e) {		
		if (e.getSource().equals(this.imageMenuItem)){
			this.onInsertImageMenuItemClick(e);
		}
		else if (e.getSource().equals(this.scrollMenuItem)){
			this.handleScrolling();
		}
		else if (e.getSource().equals(this.spellCheckMenuItem)){
			this.handleSpellChecking();
		}
		else if (e.getSource().equals(this.aboutMenuItem)){
			JOptionPane.showMessageDialog(this, "Lext editor implementation\nDeveloper: Amit Dutta" +
					"\nEmail: adutta@cis.uab.edu\nWeb: http://www.amitdutta.net", "Lexi", JOptionPane.INFORMATION_MESSAGE);
		}
		else if (e.getSource().equals(this.exitMenuItem)){
			this.document.removeObserver(this);
			this.dispose();
		}
		else if (e.getSource().equals(this.saveMenuItem)) {
			this.handleSaveMenuItemClick();
		}
		else if (e.getSource().equals(this.openMenuItem)) {
			this.handleOpenMenuItemClick();
		}
	}