private JPanel createConfigurationPanel() {
FontChooser fontChooser;
YBoxPanel mainPanel;
JPanel flowPanel;
ProportionalGridPanel colorsPanel;
PreviewLabel label;
fontChooser = createFontChooser(ThemeData.LOCATION_BAR_FONT);
addFontChooserListener(fontChooser, normalPreview);
addFontChooserListener(fontChooser, progressPreview);
addLabelRow(colorsPanel = new ProportionalGridPanel(3), false);
label = new PreviewLabel();
addColorButtons(colorsPanel, fontChooser, "theme_editor.normal",
ThemeData.LOCATION_BAR_FOREGROUND_COLOR, ThemeData.LOCATION_BAR_BACKGROUND_COLOR, label).addPropertyChangeListener(this);
addColorButtons(colorsPanel, fontChooser, "theme_editor.selected",
ThemeData.LOCATION_BAR_SELECTED_FOREGROUND_COLOR, ThemeData.LOCATION_BAR_SELECTED_BACKGROUND_COLOR).addPropertyChangeListener(this);
label.setTextPainted(true);
addFontChooserListener(fontChooser, label);
colorsPanel.add(createCaptionLabel("theme_editor.progress"));
colorsPanel.add(new JLabel());
colorsPanel.add(new ColorButton(parent, themeData, ThemeData.LOCATION_BAR_PROGRESS_COLOR, PreviewLabel.OVERLAY_COLOR_PROPERTY_NAME, label));
label.addPropertyChangeListener(this);
flowPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
flowPanel.add(colorsPanel);
flowPanel.setBorder(BorderFactory.createTitledBorder(Translator.get("theme_editor.colors")));