public void registerActionListeners(ActionListener listener) {
		String commandName;
		
		for (int i = 0; i < buttonArray.size(); i++) {
			commandName = buttonArray.get(i).getName();
			buttonArray.get(i).setActionCommand(commandName);
			buttonArray.get(i).addActionListener(listener);
		}
		
		for (int i = 0; i < menuItemArray.size(); i++) {
			commandName = menuItemArray.get(i).getName();
			menuItemArray.get(i).setActionCommand(commandName);
			menuItemArray.get(i).addActionListener(listener);
		}

	}