/**
* An “about” dialog.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class AboutDialog extends JDialog implements I18nable {
/**
* Creates a new “about” dialog.
- *
+ *
* @param swingInterface
* The Swing interface
*/
/**
* Creates the “about” page.
- *
+ *
* @return The “about” page
*/
private JComponent createAboutPage() {
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);
}
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);
}
/**
* Creates the “license” page.
- *
+ *
* @return The “license” page
*/
private JComponent createLicensePage() {
/**
* Loads the license text.
- *
+ *
* @return The license text
*/
private String loadLicenseText() {
/**
* Container for a contributor.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
private static class Contributor {
/**
* Creates a new contributor.
- *
+ *
* @param name
* The name of the contributor
* @param email
/**
* Returns the name of the contributor.
- *
+ *
* @return The name of the contributor
*/
String getName() {
/**
* Returns the email address of the contributor.
- *
+ *
* @return The email address of the contributor
*/
String getEmail() {
/**
* Returns the parts where the contributor helped.
- *
+ *
* @return The parts where the contributor helped
*/
String getPart() {
/**
* 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 {
/**
* Creates a new code usage object.
- *
+ *
* @param name
* The name of the project
* @param url
/**
* Returns the name of the project.
- *
+ *
* @return The name of the project
*/
public String getName() {
/**
* Returns the URL of the project.
- *
+ *
* @return The URL of the project
*/
public String getURL() {
/**
* Returns the license of the used part.
- *
+ *
* @return The license of the used part
*/
public String getLicense() {
/**
* Returns the used part.
- *
+ *
* @return The used part
*/
public String getPart() {