summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/impl
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-10 19:06:52 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-10 19:06:52 +0200
commit182d3b499b306f660d3bf69ddd83d60f47b9e223 (patch)
treeae3272dcb64c70b14bdd1bf94d3b41b04dedc628 /src/jrummikub/view/impl
parent28e5462b08ad8d086b445c08113ab5b2d0151466 (diff)
downloadJRummikub-182d3b499b306f660d3bf69ddd83d60f47b9e223.tar
JRummikub-182d3b499b306f660d3bf69ddd83d60f47b9e223.zip
Make XMPP login work
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@404 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/impl')
-rw-r--r--src/jrummikub/view/impl/LoginPanel.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/jrummikub/view/impl/LoginPanel.java b/src/jrummikub/view/impl/LoginPanel.java
index 450c392..842bf74 100644
--- a/src/jrummikub/view/impl/LoginPanel.java
+++ b/src/jrummikub/view/impl/LoginPanel.java
@@ -10,6 +10,7 @@ import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
+import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;
@@ -39,10 +40,10 @@ class LoginPanel extends JPanel implements ILoginPanel {
c.weightx = 1;
c.weighty = 1;
- userNameField = addInputRow("Benutzername:");
- serverNameField = addInputRow("Server:");
- passwordField = addInputRow("Passwort:");
- channelNameField = addInputRow("Channel:");
+ userNameField = addInputRow("Benutzername:", new JTextField());
+ serverNameField = addInputRow("Server:", new JTextField());
+ passwordField = addInputRow("Passwort:", new JPasswordField());
+ channelNameField = addInputRow("Channel:", new JTextField());
add(Box.createVerticalGlue(), c);
c.gridwidth = 1;
@@ -85,7 +86,7 @@ class LoginPanel extends JPanel implements ILoginPanel {
return cancelEvent;
}
- private JTextField addInputRow(String label) {
+ private JTextField addInputRow(String label, JTextField textField) {
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.gridwidth = 1;
@@ -94,8 +95,6 @@ class LoginPanel extends JPanel implements ILoginPanel {
add(new JLabel(label), c);
- JTextField textField = new JTextField();
-
c.gridwidth = GridBagConstraints.REMAINDER;
add(textField, c);
return textField;