Examples of FontChooser


Examples of com.darwinsys.swingui.FontChooser

    JMenu options = new JMenu("Options");
    bar.add(options);
    JMenuItem fontItem = new JMenuItem("Font");
    options.add(fontItem);
    final FontChooser fontChooser = new FontChooser(parent);
    fontItem.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        fontChooser.setVisible(true);
        Font font = fontChooser.getSelectedFont();
        if (font == null) {
          System.out.println("Nothing selected");
          return;
        }
        System.out.println(font);
View Full Code Here

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

Examples of com.mucommander.ui.chooser.FontChooser

    /**
     * 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

Examples of com.mucommander.ui.chooser.FontChooser

    /**
     * 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

Examples of com.mucommander.ui.chooser.FontChooser

     * 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

Examples of com.mucommander.ui.chooser.FontChooser

        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

Examples of com.mucommander.ui.chooser.FontChooser

    /**
     * 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

Examples of com.mucommander.ui.chooser.FontChooser

    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

Examples of com.stoof.IM.utils.FontChooser

        else if (e.getSource() == Font)
        {
            //open options window
      try {
        //MainChat.currentFont = allUtils.fontMenu();
        @SuppressWarnings("unused")
        FontChooser fc = new FontChooser(chat);
      } catch (FileNotFoundException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
      }
View Full Code Here

Examples of com.tulskiy.musique.gui.components.FontChooser

        JPanel fonts = new JPanel(new GridLayout(1, 2, 10, 10));
        fonts.setBorder(BorderFactory.createTitledBorder("Fonts"));

        fonts.add(new JLabel("Default"));
        final FontChooser defaultFont = new FontChooser(config.getFont("gui.font.default", null));
        fonts.add(defaultFont);

//        fonts.add(new JLabel("Tabs"));
//        FontChooser tabsFont = new FontChooser(config.getFont("gui.font.tabs", null));
//        fonts.add(tabsFont);

        mainBox.add(fonts);

        applyButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                config.setColor("gui.color.text", text.getColor());
                config.setColor("gui.color.background", background.getColor());
                config.setColor("gui.color.selection", selection.getColor());
                config.setColor("gui.color.highlight", highlight.getColor());
                config.setFont("gui.font.default", defaultFont.getSelectedFont());
                config.setColor("tray.bgColor1", trayBg1.getColor());
                config.setColor("tray.bgColor2", trayBg2.getColor());
                SwingUtilities.updateComponentTreeUI(SwingUtilities.getRoot(owner));
            }
        });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.