Java Swing Font makeFontBold(JComponent c)

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

Description

make Font Bold

License

Apache License

Declaration

public static void makeFontBold(JComponent c) 

Method Source Code


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

import javax.swing.*;

import java.awt.*;

public class Main {
    public static void makeFontBold(JComponent c) {
        Font font = c.getFont();/*from w  w w. j  a  va 2 s.  c om*/
        c.setFont(new Font(font.getName(), Font.BOLD, font.getSize()));
    }
}

Related

  1. increaseDefaultFont(float multiplier)
  2. initGlobalFont(Font font)
  3. installColorsAndFont(Component c, Color background, Color foreground, Font font)
  4. installLargerDefaultFonts()
  5. listFonts()
  6. makeFontsPlain()
  7. makeHtmlPane(CharSequence text, Font font)
  8. makePlainTextPane(String text, Font font)
  9. mildFont(T comp)