X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FEditNodeDialog.java;h=5eecc98781bbf26ba601191efda25d0c2f7b9fd4;hb=db1e793acd0db97c1b15a6ba9d157262519e3dab;hp=0fc21ce7243e0da5e3bc9b8565acd5a11cb49c9a;hpb=dada71a8717c975a426e35b0dea4dd8bc6203806;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/EditNodeDialog.java b/src/net/pterodactylus/jsite/gui/EditNodeDialog.java index 0fc21ce..5eecc98 100644 --- a/src/net/pterodactylus/jsite/gui/EditNodeDialog.java +++ b/src/net/pterodactylus/jsite/gui/EditNodeDialog.java @@ -29,6 +29,7 @@ import java.awt.event.ActionEvent; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JDialog; +import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JTextField; @@ -44,9 +45,8 @@ import net.pterodactylus.util.swing.SwingUtils; /** * Dialog that lets the user edit the properties of a node. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ public class EditNodeDialog extends JDialog implements I18nable { @@ -88,12 +88,12 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Creates a new node edit dialog with the given parent. - * - * @param parentDialog - * The parent dialog of this dialog + * + * @param parentFrame + * The parent frame of this dialog */ - public EditNodeDialog(JDialog parentDialog) { - super(parentDialog, I18n.get("editNodeDialog.title") + " – jSite " + Version.getVersion(), true); + public EditNodeDialog(JFrame parentFrame) { + super(parentFrame, I18n.get("editNodeDialog.title") + " – jSite " + Version.getVersion(), true); initActions(); initComponents(); pack(); @@ -108,7 +108,7 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Returns the user-given name of the node. - * + * * @return The user-given name of the node */ public String getNodeName() { @@ -117,7 +117,7 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Sets the user-given name of the node. - * + * * @param name * The name of the node */ @@ -128,7 +128,7 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Returns the hostname of the node. - * + * * @return The hostname of the node */ public String getNodeHostname() { @@ -137,7 +137,7 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Sets the hostname of the node. - * + * * @param hostname * The hostname of the node */ @@ -148,7 +148,7 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Returns the FCP port number of the node. - * + * * @return The FCP port number of the node */ public int getNodePort() { @@ -157,7 +157,7 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Sets the FCP port number of the node. - * + * * @param port * The FCP port number of the node */ @@ -168,7 +168,7 @@ public class EditNodeDialog extends JDialog implements I18nable { /** * Returns whether the dialog was cancelled. - * + * * @return true if the dialog was cancelled, * false if the user clicked “okay” */