// Color buttons.
addColorButtons(gridPanel, fontChooser, "theme_editor.normal",
ThemeData.QUICK_LIST_ITEM_FOREGROUND_COLOR, ThemeData.QUICK_LIST_ITEM_BACKGROUND_COLOR, label).addPropertyChangeListener(this);
addColorButtons(gridPanel, fontChooser, "theme_editor.selected",
ThemeData.QUICK_LIST_SELECTED_ITEM_FOREGROUND_COLOR, ThemeData.QUICK_LIST_SELECTED_ITEM_BACKGROUND_COLOR, label).addPropertyChangeListener(this);
label.addPropertyChangeListener(this);
// Wraps everything in a flow layout.
colorsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
colorsPanel.add(gridPanel);
colorsPanel.setBorder(BorderFactory.createTitledBorder(Translator.get("theme_editor.colors")));