Java Swing Font applyComponentFont(JComponent c)

Here you can find the source of applyComponentFont(JComponent c)

Description

apply Component Font

License

LGPL

Declaration

public static void applyComponentFont(JComponent c) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.awt.Font;

import javax.swing.JComponent;

public class Main {
    private static final Font guifont = new Font("Arial", Font.BOLD, 12);

    public static void applyComponentFont(JComponent c) {
        c.setFont(guifont);/*ww  w .  j a  v  a2 s.co m*/
    }
}

Related

  1. addLabel(Container component, String text, Icon icon, int horizontalAlignment, Font font)
  2. applyFont(JPanel p)
  3. applyProperties(final Component comp, final Color colBack, final Color colFore, final Font font)
  4. autoAwesomeLookAndFeel(String fontName, Map defaults)
  5. boldFont(JComponent component)