if (this.menuCommands == null) { return; }
	public void removeCommand(Command cmd) {		int index = this.menuCommands.indexOf(cmd);		if (index == -1) {			return;		}		this.menuCommands.remove(index);		if (this.menuSingleLeftCommand == cmd ) {			this.menuSingleLeftCommand = null;			this.menuContainer.remove(index);					} else if (this.menuSingleRightCommand == cmd) {			this.menuSingleRightCommand = null;		} else {			this.menuContainer.remove(index);					}		if (isShown()) {			repaint();		}	}