Package com.mucommander.ui.chooser

Examples of com.mucommander.ui.chooser.FontChooser


        ColorButton  foreground;
        ColorButton  background;
        ColorButton  border;
        PreviewLabel previewLabel;
        PreviewLabel borderPreviewLabel;
        FontChooser  fontChooser;

        JTabbedPane tabbedPane;
        fontChooser = createFontChooser(ThemeData.STATUS_BAR_FONT);

        // Initialises the foreground color button.
View Full Code Here


    /**
     * Initialises the panel's UI.
     */
    private void initUI() {
        YBoxPanel   configurationPanel; // Contains all the configuration elements.
        FontChooser fontChooser;        // Used to select a font.
        JPanel      mainPanel;          // Main panel.

        // Font chooser and preview initialisation.
        mainPanel   = new JPanel(new BorderLayout());
        fontChooser = createFontChooser(ThemeData.EDITOR_FONT);
View Full Code Here

    /**
     * Creates a font chooser that will keep the specified font up-to-date in the current theme data.
     * @param fontId identifier of the font this chooser will be editing.
     */
    protected FontChooser createFontChooser(int fontId) {
        FontChooser    fontChooser; // Font chooser that will be returned.
        ChangeListener listener;    // Internal listener.

        // Initialises the font chooser.
        fontChooser = new FontChooser(themeData.getFont(fontId));
        fontChooser.setBorder(BorderFactory.createTitledBorder(Translator.get("theme_editor.font")));
        fontChooser.addChangeListener(listener = new ThemeFontChooserListener(themeData, fontId, parent));

        // Hold a reference to this listener to prevent garbage collection
        listenerReferences.add(listener);

        return fontChooser;
View Full Code Here

     * Initializes the panel's UI.
     */
    private void initUI() {
        YBoxPanel   headerConfigurationPanel; // Contains all the configuration elements.
        YBoxPanel   itemConfigurationPanel; // Contains all the configuration elements.
        FontChooser fontChooser1;        // Used to select a font.
        FontChooser fontChooser2;        // Used to select a font.
        JPanel      mainPanel;          // Main panel.
        JTabbedPane tabbedPane;
       
        header.addComponentListener(new ComponentListener() {

View Full Code Here

        super(parent, Translator.get("theme_editor.locationbar_tab"), themeData);
        initUI();
    }

    private JPanel createConfigurationPanel() {
        FontChooser           fontChooser;
        YBoxPanel             mainPanel;
        JPanel                flowPanel;
        ProportionalGridPanel colorsPanel;
        PreviewLabel          label;
View Full Code Here

    /**
     * Initialises the panel's UI.
     */
    private void initUI() {
        JTabbedPane tabbedPane;
        FontChooser fontChooser;
        FilePanel   filePanel;

        tabbedPane = new JTabbedPane(JTabbedPane.TOP);

        // Adds the general panel.
View Full Code Here

    private JComponent createConfigurationPanel(int fontId, int foregroundId, int backgroundId, int selectedForegroundId, int selectedBackgroundId, JComponent fontListener) {
        YBoxPanel             mainPanel;
        ProportionalGridPanel colorPanel;
        JPanel                flowPanel;
        FontChooser           fontChooser;

        mainPanel = new YBoxPanel();

        fontChooser = createFontChooser(fontId);
        mainPanel.add(fontChooser);
View Full Code Here

TOP

Related Classes of com.mucommander.ui.chooser.FontChooser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.