separator.getModel().setSelected(true);
separator.setSelected(true);
	public ContextAddDialog(Component comp, ListModel actionsList)	{		super(JOptionPane.getFrameForComponent(comp),			jEdit.getProperty("options.context.add.title"),			true);		getContentPane().add(BorderLayout.NORTH,new JLabel(			jEdit.getProperty("options.context.add.caption")));		JPanel centerPanel = new JPanel(new BorderLayout());		JPanel radioPanel = new JPanel(new GridLayout(2,1));		ActionHandler actionHandler = new ActionHandler();		ButtonGroup grp = new ButtonGroup();		separator = new JRadioButton(jEdit.getProperty("options.context"			+ ".add.separator"));		separator.getModel().setSelected(true);		separator.addActionListener(actionHandler);		grp.add(separator);		radioPanel.add(separator);		action = new JRadioButton(jEdit.getProperty("options.context"			+ ".add.action"));		action.addActionListener(actionHandler);		grp.add(action);		radioPanel.add(action);		centerPanel.add(BorderLayout.NORTH,radioPanel);		list = new JList(actionsList);		list.setVisibleRowCount(16);		list.setEnabled(false);		centerPanel.add(BorderLayout.CENTER,new JScrollPane(list));		getContentPane().add(BorderLayout.CENTER,centerPanel);		JPanel southPanel = new JPanel();		ok = new JButton(jEdit.getProperty("common.ok"));		ok.addActionListener(actionHandler);		getRootPane().setDefaultButton(ok);		southPanel.add(ok);		cancel = new JButton(jEdit.getProperty("common.cancel"));		cancel.addActionListener(actionHandler);		southPanel.add(cancel);		getContentPane().add(BorderLayout.SOUTH,southPanel);		pack();		Dimension screen = getToolkit().getScreenSize();		setLocation((screen.width - getSize().width) / 2,			(screen.height - getSize().height) / 2);		show();	}