X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FAboutDialog.java;h=8f79a52a68cafd163304bc6d5ea31b7cfcf9ebd8;hb=c63257e8cc0ba1a5aca9364b22171abe7279d479;hp=153e4cffc86fc6f27cec85c1ef83c7a97810b13c;hpb=d3717de303befe6ba591106ee2b240b8a4fab243;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/AboutDialog.java b/src/net/pterodactylus/jsite/gui/AboutDialog.java index 153e4cf..8f79a52 100644 --- a/src/net/pterodactylus/jsite/gui/AboutDialog.java +++ b/src/net/pterodactylus/jsite/gui/AboutDialog.java @@ -53,15 +53,14 @@ import net.pterodactylus.util.swing.SwingUtils; /** * An “about” dialog. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ public class AboutDialog extends JDialog implements I18nable { /** A list of all contributors. */ private static final List CONTRIBUTORS = new ArrayList(); - + /** A list of all code usages. */ private static final List CODE_USAGES = new ArrayList(); @@ -84,7 +83,7 @@ public class AboutDialog extends JDialog implements I18nable { /** The “other people’s code used” label. */ private I18nLabel codeUsageLabel; - + /** The license header. */ private I18nLabel licenseHeaderLabel; @@ -93,7 +92,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Creates a new “about” dialog. - * + * * @param swingInterface * The Swing interface */ @@ -149,7 +148,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Creates the “about” page. - * + * * @return The “about” page */ private JComponent createAboutPage() { @@ -171,7 +170,7 @@ public class AboutDialog extends JDialog implements I18nable { textPanel.add(Box.createVerticalStrut(12)); contributorsLabel.setFont(contributorsLabel.getFont().deriveFont(Font.BOLD)); - for (Contributor contributor: CONTRIBUTORS) { + for (Contributor contributor : CONTRIBUTORS) { JLabel contributorLabel = new JLabel(contributor.getName() + " <" + contributor.getEmail() + "> (" + contributor.getPart() + ")"); textPanel.add(contributorLabel); } @@ -190,18 +189,18 @@ public class AboutDialog extends JDialog implements I18nable { codeUsageLabel.setFont(codeUsageLabel.getFont().deriveFont(Font.BOLD)); textPanel.add(codeUsageLabel); textPanel.add(Box.createVerticalStrut(12)); - - for (CodeUsage codeUsage: CODE_USAGES) { + + for (CodeUsage codeUsage : CODE_USAGES) { JLabel usageLabel = new JLabel(codeUsage.getName() + " (" + codeUsage.getURL() + ", " + codeUsage.getLicense() + ")"); textPanel.add(usageLabel); } - + return aboutPanel; } /** * Creates the “license” page. - * + * * @return The “license” page */ private JComponent createLicensePage() { @@ -226,7 +225,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Loads the license text. - * + * * @return The license text */ private String loadLicenseText() { @@ -284,9 +283,8 @@ public class AboutDialog extends JDialog implements I18nable { /** * Container for a contributor. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ private static class Contributor { @@ -301,7 +299,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Creates a new contributor. - * + * * @param name * The name of the contributor * @param email @@ -317,7 +315,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Returns the name of the contributor. - * + * * @return The name of the contributor */ String getName() { @@ -326,7 +324,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Returns the email address of the contributor. - * + * * @return The email address of the contributor */ String getEmail() { @@ -335,7 +333,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Returns the parts where the contributor helped. - * + * * @return The parts where the contributor helped */ String getPart() { @@ -347,7 +345,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * A code usage object describes code or other resources that have been * taken from other projects. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ private static class CodeUsage { @@ -366,7 +364,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Creates a new code usage object. - * + * * @param name * The name of the project * @param url @@ -385,7 +383,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Returns the name of the project. - * + * * @return The name of the project */ public String getName() { @@ -394,7 +392,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Returns the URL of the project. - * + * * @return The URL of the project */ public String getURL() { @@ -403,7 +401,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Returns the license of the used part. - * + * * @return The license of the used part */ public String getLicense() { @@ -412,7 +410,7 @@ public class AboutDialog extends JDialog implements I18nable { /** * Returns the used part. - * + * * @return The used part */ public String getPart() {