use of com.mucommander.ui.chooser.FontChooser in project mucommander by mucommander.
the class FileEditorPanel method initUI.
/**
* Initialises the panel's UI.
*/
private void initUI() {
// Contains all the configuration elements.
YBoxPanel configurationPanel;
// Used to select a font.
FontChooser fontChooser;
// Main panel.
JPanel mainPanel;
// Font chooser and preview initialisation.
mainPanel = new JPanel(new BorderLayout());
fontChooser = createFontChooser(ThemeData.EDITOR_FONT);
mainPanel.add(createPreviewPanel(), BorderLayout.EAST);
addFontChooserListener(fontChooser, preview);
// Configuration panel initialisation.
configurationPanel = new YBoxPanel();
configurationPanel.add(fontChooser);
configurationPanel.addSpace(10);
configurationPanel.add(createColorsPanel(fontChooser));
mainPanel.add(configurationPanel, BorderLayout.CENTER);
// Layout.
setLayout(new BorderLayout());
add(mainPanel, BorderLayout.NORTH);
}
use of com.mucommander.ui.chooser.FontChooser in project mucommander by mucommander.
the class FolderPanePanel method initUI.
// - UI initialisation ---------------------------------------------------------------
// -----------------------------------------------------------------------------------
/**
* Initialises the panel's UI.
*/
private void initUI() {
JTabbedPane tabbedPane;
FontChooser fontChooser;
FilePanel filePanel;
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
// Adds the general panel.
tabbedPane.add(Translator.get("theme_editor.general"), createScrollPane(createGeneralPanel(fontChooser = createFontChooser(ThemeData.FILE_TABLE_FONT))));
// Adds the active panel.
filePanel = new FilePanel(parent, true, themeData, fontChooser);
tabbedPane.add(filePanel.getTitle(), createScrollPane(filePanel));
// Adds the inactive panel.
filePanel = new FilePanel(parent, false, themeData, fontChooser);
tabbedPane.add(filePanel.getTitle(), createScrollPane(filePanel));
// Creates the layout.
setLayout(new BorderLayout());
add(tabbedPane, BorderLayout.NORTH);
}
Aggregations