String []fonts; fonts = Toolkit.getDefaultToolkit().getFontList(); setLayout (new GridLayout (0,1)); for (int i = 0; i < fonts.length; i++) { add (l = new Label (fonts[i], i % 3)); l.setFont (new Font (fonts[i], Font.BOLD, 10+i*2)); }