use of com.mucommander.commons.util.ui.layout.ProportionalGridPanel in project mucommander by mucommander.
the class FolderPanePanel method createGeneralPanel.
/**
* Creates the 'general' theme.
*/
private JPanel createGeneralPanel(FontChooser chooser) {
YBoxPanel mainPanel;
JPanel quickSearchPanel;
ProportionalGridPanel panel;
JPanel wrapper;
// Initialises the quicksearch panel.
panel = new ProportionalGridPanel(4);
addLabelRow(panel);
panel.add(addColorButtons(panel, chooser, "theme_editor.quick_search.unmatched_file", ThemeData.FILE_TABLE_UNMATCHED_FOREGROUND_COLOR, ThemeData.FILE_TABLE_UNMATCHED_BACKGROUND_COLOR));
quickSearchPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
quickSearchPanel.add(panel);
quickSearchPanel.setBorder(BorderFactory.createTitledBorder(Translator.get("theme_editor.quick_search")));
// Initialises the panel.
mainPanel = new YBoxPanel();
mainPanel.add(chooser);
mainPanel.addSpace(10);
mainPanel.add(quickSearchPanel);
// Wraps everything in a border layout.
wrapper = new JPanel(new BorderLayout());
wrapper.add(mainPanel, BorderLayout.NORTH);
return wrapper;
}
Aggregations