diff options
Diffstat (limited to 'src')
-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"); } } |