jEdit.getProperty("styleEditor.bold")));
jEdit.getProperty("style-editor.bold")));
	StyleEditor(Component comp, SyntaxStyle style)	{		super(JOptionPane.getFrameForComponent(comp),			jEdit.getProperty("styleEditor.title"),true);		getContentPane().setLayout(new BorderLayout());		JPanel panel = new JPanel();		panel.add(italics = new JCheckBox(			jEdit.getProperty("styleEditor.italics")));		italics.setSelected(style.isItalic());		panel.add(bold = new JCheckBox(			jEdit.getProperty("styleEditor.bold")));		bold.setSelected(style.isBold());		panel.add(new JLabel(			jEdit.getProperty("styleEditor.fgColor")));		panel.add(fgColor = new JButton("    "));		fgColor.setBackground(style.getForegroundColor());		fgColor.setRequestFocusEnabled(false);		fgColor.addActionListener(this);		panel.add(new JLabel(jEdit.getProperty("styleEditor.bgColor")));		panel.add(bgColor = new JButton("    "));		if(style.getBackgroundColor() == null)		{			bgColor.setBackground(GUIUtilities.parseColor(jEdit.getProperty("view.bgColor")));		}		else		{			bgColor.setBackground(style.getBackgroundColor());		}		bgColor.setRequestFocusEnabled(false);		bgColor.addActionListener(this);		getContentPane().add(BorderLayout.CENTER,panel);		panel = new JPanel();		panel.add(ok = new JButton(jEdit.getProperty("common.ok")));		getRootPane().setDefaultButton(ok);		ok.addActionListener(this);		panel.add(cancel = new JButton(jEdit.getProperty("common.cancel")));		cancel.addActionListener(this);		getContentPane().add(BorderLayout.SOUTH,panel);		addKeyListener(this);		setDefaultCloseOperation(DISPOSE_ON_CLOSE);		Dimension screen = getToolkit().getScreenSize();		pack();		setLocation((screen.width - getSize().width) / 2,			(screen.height - getSize().height) / 2);		setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);		show();	}