@Override
	public void actionPerformed(ActionEvent e) {
		//Handle menu events.
		if (e.getActionCommand() == MenuBar.NEW_ACTION_COMMAND) {
			if (doesCurrentMatchNeedSaving()) {
				promptForMatchSave();
			}
			
			displaySettingsPanel();
		} else if (e.getActionCommand() == MenuBar.SAVE_ACTION_COMMAND) {
			showSaveDialog();//TODO: Grey out the save button when the match is over.
		} else if (e.getActionCommand() == MenuBar.LOAD_ACTION_COMMAND) {
			if (doesCurrentMatchNeedSaving()) {
				promptForMatchSave();
			}
			showLoadDialog();
		} else if (e.getActionCommand() == MenuBar.EXIT_ACTION_COMMAND) {
			dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)); 
			//Imitate a standard window closing event, like EXIT_ON_CLOSE could cause. This will trigger a quicksave.
		}
	}