These code examples and other materials are subject to Sun Microsystems, Inc. Legal Terms
Listing All Available Fonts
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); String fontNames[] = ge.getAvailableFontFamilyNames(); for (int i=0; i<fontNames.length; i++) { process(fontNames[i]); }
Examplets provided by permission of the publisher, Addision-Wesley, and Author Patrick Chan. Order this book from Amazon