JMenuItem toggleItem = MainFrame.newJMenuItem(menuName);
JMenuItem toggleItem = new JMenuItem(menuName);
	void addDesignationItem(JMenu menu, final String menuName, int keyEvent) {		JMenuItem toggleItem = MainFrame.newJMenuItem(menuName);		toggleItem.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent arg0) {				if (frame.currentSelectedBugLeaf == null)					setDesignationNonLeaf(menuName);				else					setDesignation(menuName);			}		});		MainFrame.attachAccelaratorKey(toggleItem, keyEvent);		menu.add(toggleItem);	}