private void updateElementsComputedMenu(BitSet elementsPresentBitSet, boolean popup) {
		if (elementsPresentBitSet == null)
			return;
		JMenu menu = popup ? elementsComputedMenu2 : elementsComputedMenu1;
		if (menu == null)
			return;
		menu.removeAll();
		ButtonGroup bg = new ButtonGroup();
		String elementName, elementSymbol, entryName;
		for (int i = 0, n = JmolConstants.elementNames.length; i < n; ++i) {
			if (elementsPresentBitSet.get(i)) {
				elementName = JmolConstants.elementNames[i];
				elementSymbol = JmolConstants.elementSymbols[i];
				entryName = elementSymbol + " - " + elementName;
				final String script = "select " + elementName;
				JMenuItem mi = new JRadioButtonMenuItem(entryName);
				mi.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent e) {
						jmolContainer.jmol.viewer.runScriptImmediatelyWithoutThread(script);
					}
				});
				menu.add(mi);
				bg.add(mi);
			}
		}
	}