From 17f9e338cb71b8d56b56dc30dc49123e4d5c407b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 22 Jun 2011 11:44:22 +0200 Subject: Emptied login panel git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@598 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/LoginPanel.java | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/jrummikub') 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"); } } -- cgit v1.2.3