String []fonts;
fonts = Toolkit.getDefaultToolkit().getFontList();
add (cb = new Checkbox (fonts[0]));
CheckboxGroup cbg = new CheckboxGroup();
Panel p = new Panel();
p.setLayout (new GridLayout (0,1));
for (int i = 1; i < fonts.length; i++) {
p.add (new Checkbox (fonts[i], cbg, false));
}
add (p);