X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FConfigurationDialog.java;h=92c547aa3bc5dc3870469a4c75cc4f126ce963d2;hb=c63257e8cc0ba1a5aca9364b22171abe7279d479;hp=8523c23f7d3e061237ac659f4861448bad8208b4;hpb=024c0cd4f520ee537b8e4565b2bcc8eea4677a50;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/ConfigurationDialog.java b/src/net/pterodactylus/jsite/gui/ConfigurationDialog.java index 8523c23..92c547a 100644 --- a/src/net/pterodactylus/jsite/gui/ConfigurationDialog.java +++ b/src/net/pterodactylus/jsite/gui/ConfigurationDialog.java @@ -38,9 +38,8 @@ import net.pterodactylus.util.swing.SwingUtils; /** * The configuration dialog. - * + * * @author David Roden - * @version $Id$ */ public class ConfigurationDialog extends JDialog implements I18nable { @@ -103,7 +102,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Creates a new configuration dialog. - * + * * @param swingInterface * The Swing interface */ @@ -123,7 +122,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Returns whether the dialog was cancelled or confirmed. If the dialog was * cancelled, no further processing should be done. - * + * * @return true if the dialog was cancelled, * false otherwise */ @@ -133,7 +132,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Returns whether the advanced mode is selected. - * + * * @return true if the advanced mode is selected, * false otherwise */ @@ -143,7 +142,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Sets whether the advanced mode is selected. - * + * * @param advancedMode * true if the advanced mode is selected, * false otherwise @@ -156,7 +155,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { * Returns whether the “beautify” checkbox has been selected. The result of * this method should not be used if {@link #wasCancelled()} returned * true! - * + * * @return true if the checkbox was selected, * false otherwise */ @@ -166,7 +165,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Sets the state of the “antialias” checkbox. - * + * * @param antialias * The state of the checkbox */ @@ -176,7 +175,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Returns the font for the controls. - * + * * @return The control font, or null if no custom control * font is to be used */ @@ -186,7 +185,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Sets the font for the controls. - * + * * @param controlFont * The control font, or null if no custom control * font is to be used @@ -208,7 +207,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Returns the font for user input. - * + * * @return The font for user input, or null if no custom user * input font is to be used */ @@ -218,7 +217,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Sets the font for user input. - * + * * @param userFont * The font for user input, or null if no custom * user input font is to be used @@ -241,7 +240,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Returns the class name of the selected look and feel, if a custom look * and feel is selected. - * + * * @return The class name of the look and feel to load, or null * if no special look and feel should be used */ @@ -254,7 +253,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Sets the given look and feel. - * + * * @param lookAndFeel * The class name of the look and feel, or null to * not select a custom look and feel @@ -387,7 +386,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Creates the interface configuration panel. - * + * * @return The interface configuration panel */ private JComponent createInterfaceConfig() { @@ -403,7 +402,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Creates the panel for the interface tweaks configuration. - * + * * @return The interface tweaks configuration panel */ private JComponent createInterfaceTweaksConfig() { @@ -439,11 +438,11 @@ public class ConfigurationDialog extends JDialog implements I18nable { LookAndFeelInfo[] lookAndFeelInfos = UIManager.getInstalledLookAndFeels(); List lookAndFeelWrappers = new ArrayList(); - for (LookAndFeelInfo lookAndFeelInfo: lookAndFeelInfos) { + for (LookAndFeelInfo lookAndFeelInfo : lookAndFeelInfos) { lookAndFeelWrappers.add(new LookAndFeelWrapper(lookAndFeelInfo.getClassName(), lookAndFeelInfo.getName())); } customLAFComboBox = new JComboBox(lookAndFeelWrappers.toArray(new LookAndFeelWrapper[0])); - interfaceTweaksConfigPanel.add(customLAFComboBox, new GridBagConstraints(1, 4, 2, 1, 1.0, 1.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(6, 6, 0, 0), 0, 0)); + interfaceTweaksConfigPanel.add(customLAFComboBox, new GridBagConstraints(1, 4, 2, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(6, 6, 0, 0), 0, 0)); interfaceTweaksConfigPanel.add(new JPanel(), new GridBagConstraints(0, 5, 3, 1, 1.0, 1.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); @@ -503,9 +502,8 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Wrapper around class name and name of a {@link LookAndFeel}. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ private static class LookAndFeelWrapper { @@ -518,7 +516,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Creates a new wrapper around the given class name and name of a look * and feel. - * + * * @param className * The class name of the look and feel * @param lookAndFeelName @@ -531,7 +529,7 @@ public class ConfigurationDialog extends JDialog implements I18nable { /** * Returns the class name of the look and feel. - * + * * @return The class name of the look and feel */ public String getClassName() {