separator.getModel().setSelected(true);
separator.setSelected(true);
	public ToolBarAddDialog(Component comp, ListModel actionsList,		ComboBoxModel iconList)	{		super(JOptionPane.getFrameForComponent(comp),			jEdit.getProperty("options.toolbar.add.title"),true);		getContentPane().add(BorderLayout.NORTH,new JLabel(			jEdit.getProperty("options.toolbar.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.toolbar"			+ ".add.separator"));		separator.getModel().setSelected(true);		separator.addActionListener(actionHandler);		grp.add(separator);		radioPanel.add(separator);		action = new JRadioButton(jEdit.getProperty("options.toolbar"			+ ".add.action"));		action.addActionListener(actionHandler);		grp.add(action);		radioPanel.add(action);		centerPanel.add(BorderLayout.NORTH,radioPanel);		list = new JList(actionsList);		list.setVisibleRowCount(16);		centerPanel.add(BorderLayout.CENTER,new JScrollPane(list));		JPanel iconPanel = new JPanel(new BorderLayout());		JPanel labelPanel = new JPanel(new GridLayout(2,1));		JPanel compPanel = new JPanel(new GridLayout(2,1));		grp = new ButtonGroup();		labelPanel.add(builtin = new JRadioButton(jEdit.getProperty(			"options.toolbar.add.builtin")));		builtin.addActionListener(actionHandler);		builtin.getModel().setSelected(true);		grp.add(builtin);		labelPanel.add(file = new JRadioButton(jEdit.getProperty(			"options.toolbar.add.file")));		grp.add(file);		file.addActionListener(actionHandler);		iconPanel.add(BorderLayout.WEST,labelPanel);		builtinCombo = new JComboBox(iconList);		builtinCombo.setRenderer(new ToolBarOptionPane.IconCellRenderer());		compPanel.add(builtinCombo);		fileButton = new JButton(jEdit.getProperty("options.toolbar.add.no-icon"));		fileButton.setMargin(new Insets(1,1,1,1));		fileButton.setIcon(new ImageIcon(getClass().getResource(			"/org/gjt/sp/jedit/toolbar/blank-20.gif")));		fileButton.setHorizontalAlignment(SwingConstants.LEFT);		fileButton.addActionListener(actionHandler);		compPanel.add(fileButton);		iconPanel.add(BorderLayout.CENTER,compPanel);		centerPanel.add(BorderLayout.SOUTH,iconPanel);		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);		updateEnabled();		pack();		Dimension screen = getToolkit().getScreenSize();		setLocation((screen.width - getSize().width) / 2,			(screen.height - getSize().height) / 2);		show();	}