Java Swing Font getDefaultLabelFont()

Here you can find the source of getDefaultLabelFont()

Description

get Default Label Font

License

Apache License

Declaration

public static Font getDefaultLabelFont() 

Method Source Code

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

import javax.swing.*;

import java.awt.*;

public class Main {
    public static Font getDefaultLabelFont() {
        Font ref = new JLabel().getFont();
        return ref.deriveFont(Font.PLAIN, ref.getSize());
    }/*from w ww  .j a va  2 s .  c o m*/
}

Related

  1. drawString(Graphics g, Font font, String text, Rectangle rect, int align)
  2. drawString(Graphics g, String text, int x, int y, Font font, Color color)
  3. getAsNotUIResource(Font font)
  4. getDefaultFont()
  5. getDefaultLabelBoldFont()
  6. getFont(String name)
  7. getFontColorToUse(boolean isSelected)
  8. getHelpTextArea(String help, Color background, Font font)
  9. getMultiLineTextForBBox(JComponent comp, double bboxWth, String txt, Font font)