Here you can find the source of getDefaultLabelFont()
public static Font getDefaultLabelFont()
//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*/ }