import java.awt.GraphicsEnvironment; ... public class ShowFonts { public static void main ( String [] args ) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); String[] names = ge.getAvailableFontFamilyNames(); for ( int i=0; i<names.length; i++ ) { out.println( names[i] ); } } }