X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FFontComboBox.java;h=7870a30e5e0e157dccc11669ead10ce3f78b21aa;hb=c63257e8cc0ba1a5aca9364b22171abe7279d479;hp=02ec429f753f286e03a9f4d84bacd77d081805b7;hpb=de9c24ff3079b496eb6988626fe9dd9dcf04a3bc;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/FontComboBox.java b/src/net/pterodactylus/jsite/gui/FontComboBox.java index 02ec429..7870a30 100644 --- a/src/net/pterodactylus/jsite/gui/FontComboBox.java +++ b/src/net/pterodactylus/jsite/gui/FontComboBox.java @@ -32,10 +32,9 @@ import javax.swing.ListCellRenderer; /** * 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> - * @version $Id$ */ public class FontComboBox extends JComboBox { @@ -47,7 +46,7 @@ public class FontComboBox extends JComboBox { 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(); } } @@ -63,9 +62,8 @@ public class FontComboBox extends JComboBox { /** * The cell renderer for the font name cells. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ private static class FontCellRenderer extends JLabel implements ListCellRenderer {