public static void main(String[] args) throws Exception{ GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); String[] fontList = ge.getAvailableFontFamilyNames(); for(int i=0;ifontList.length;i++){ System.out.println
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] fontList = ge.getAvailableFontFamilyNames();
for(int i=0;i<fontList.length;i++){
System.out.println(fontList[i]);
}
}