items.addElement(new JSeparator());  JMenu modeMenu = new JMenu(modeString); items.addElement(modeMenu);  JRadioButtonMenuItem normalModeItem = new JRadioButtonMenuItem(normalString, getMode()==OutLink.NORMAL_MODE); normalModeItem.setEnabled(getMode()!=OutLink.NORMAL_MODE); normalModeItem.addActionListener(al); modeMenu.add(normalModeItem);  JRadioButtonMenuItem invisibleModeItem = new JRadioButtonMenuItem(invisibleString, getMode()==OutLink.INVISIBLE_MODE); invisibleModeItem.setEnabled(getMode()!=OutLink.INVISIBLE_MODE); invisibleModeItem.addActionListener(al); modeMenu.add(invisibleModeItem);  modeMenu.add(new JSeparator());  JRadioButtonMenuItem inputModeItem = new JRadioButtonMenuItem(inputString, getMode()==OutLink.EXTERNAL_INPUT_MODE); inputModeItem.setEnabled(getMode()!=OutLink.EXTERNAL_INPUT_MODE); inputModeItem.addActionListener(al); modeMenu.add(inputModeItem);  JRadioButtonMenuItem outputModeItem = new JRadioButtonMenuItem(outputString, getMode()==OutLink.EXTERNAL_OUTPUT_MODE); outputModeItem.setEnabled(getMode()!=OutLink.EXTERNAL_OUTPUT_MODE); outputModeItem.addActionListener(al); modeMenu.add(outputModeItem);
public java.util.Vector getItems() {	Vector items = new Vector();	JMenuItem descItem = new JMenuItem(descriptionString);	descItem.addActionListener(createPopupmenuHandler());	items.addElement(descItem);	JMenuItem addItem = new JMenuItem(addConnectorString);	addItem.addActionListener(createPopupmenuHandler());	items.addElement(addItem);		JMenuItem removeItem = new JMenuItem(removeConnectorString);	removeItem.addActionListener(createPopupmenuHandler());	items.addElement(removeItem);		return items;}