/**
* Combobox that displays a list of all available fonts, showing the name of the
* font in the font itself.
- *
+ *
* @see GraphicsEnvironment#getAllFonts()
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
System.out.println("got " + allFonts.length + " fonts");
fontNames = new String[allFonts.length];
int fontIndex = 0;
- for (Font font: allFonts) {
+ for (Font font : allFonts) {
fontNames[fontIndex++] = font.getName();
}
}
/**
* The cell renderer for the font name cells.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
private static class FontCellRenderer extends JLabel implements ListCellRenderer {