public Menu(String name, char mnemonic, Object topMenuBar) {
		super(name);
		if(mnemonic != ' ') {
			setMnemonic(mnemonic);
		}
		if(topMenuBar instanceof JMenuBar) {
			((JMenuBar) topMenuBar).add(this);
		} else if(topMenuBar instanceof JMenu) {
			((JMenu) topMenuBar).add(this);
		}
	}