Here you can find the source of installLargerDefaultFonts()
private static void installLargerDefaultFonts()
//package com.java2s; // modify it under the terms of the GNU General Public License public class Main { private static void installLargerDefaultFonts() { System.setProperty("swing.plaf.metal.userFont", "Dialog-17"); System.setProperty("swing.plaf.metal.systemFont", "Dialog-17"); System.setProperty("swing.plaf.metal.controlFont", "Dialog-Bold-17"); }/*w w w .ja v a 2 s .c om*/ }