Here you can find the source of getSystemFontNames()
public static String[] getSystemFontNames()
//package com.java2s; //License from project: Open Source License import java.awt.*; public class Main { public static String[] getSystemFontNames() { return GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames(); }/*from w ww . j a v a 2s .c om*/ }