diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-22 11:44:22 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-22 11:44:22 +0200 |
commit | 17f9e338cb71b8d56b56dc30dc49123e4d5c407b (patch) | |
tree | 3323df1fb8e9a6d7bfb3aaae706556cfd4f19360 /src/jrummikub/view/impl | |
parent | c9782616f56f87be05398e1dcda0dd23b9f160e8 (diff) | |
download | JRummikub-17f9e338cb71b8d56b56dc30dc49123e4d5c407b.tar JRummikub-17f9e338cb71b8d56b56dc30dc49123e4d5c407b.zip |
Emptied login panel
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@598 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/impl')
-rw-r--r-- | src/jrummikub/view/impl/LoginPanel.java | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/jrummikub/view/impl/LoginPanel.java b/src/jrummikub/view/impl/LoginPanel.java index 0cca29d..7e18305 100644 --- a/src/jrummikub/view/impl/LoginPanel.java +++ b/src/jrummikub/view/impl/LoginPanel.java @@ -35,7 +35,7 @@ class LoginPanel extends JPanel implements ILoginPanel { private JTextField channelNameField; private JButton startDedicatedServerButton; private static final String DEFAULT_PASSWORD = "jrummikub"; - + LoginPanel() { setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); @@ -51,8 +51,9 @@ class LoginPanel extends JPanel implements ILoginPanel { startDedicatedServerButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { - useDedicatedServer.emit(passwordField.getText().isEmpty() ? DEFAULT_PASSWORD - : passwordField.getText()); + useDedicatedServer + .emit(passwordField.getText().isEmpty() ? DEFAULT_PASSWORD + : passwordField.getText()); } }); @@ -79,8 +80,8 @@ class LoginPanel extends JPanel implements ILoginPanel { }); add(cancelButton, c); - setBorder(new CompoundBorder(new LineBorder(Color.BLACK), - new EmptyBorder(10, 10, 10, 10))); + setBorder(new CompoundBorder(new LineBorder(Color.BLACK), new EmptyBorder( + 10, 10, 10, 10))); } private ActionListener createInputFields() { @@ -106,9 +107,8 @@ class LoginPanel extends JPanel implements ILoginPanel { } void resetLoginPanel() { - // TODO leer machen - userNameField.setText("test1"); - serverNameField.setText("universe-factory.net"); + userNameField.setText(""); + serverNameField.setText(""); passwordField.setText(""); channelNameField.setText("jrummikub@muc.universe-factory.net"); } @@ -162,8 +162,7 @@ class LoginPanel extends JPanel implements ILoginPanel { @Override public void setDedicatedServerRunning(boolean running) { - startDedicatedServerButton - .setText(running ? "Dedizierten Server nutzen" - : "Dedizierten Server starten"); + startDedicatedServerButton.setText(running ? "Dedizierten Server nutzen" + : "Dedizierten Server starten"); } } |