Here you can find the source of defaultFont()
public static Font defaultFont()
//package com.java2s; //License from project: Open Source License import java.awt.Font; import javax.swing.UIManager; public class Main { public static Font defaultFont() { return (Font) UIManager.get("MenuItem.font"); }//from ww w . j ava 2 s . c om }