summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/view/impl/LoginPanel.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/jrummikub/view/impl/LoginPanel.java b/src/jrummikub/view/impl/LoginPanel.java
index ca9f37f..d6260ff 100644
--- a/src/jrummikub/view/impl/LoginPanel.java
+++ b/src/jrummikub/view/impl/LoginPanel.java
@@ -44,18 +44,21 @@ class LoginPanel extends JPanel implements ILoginPanel {
c.gridwidth = 1;
c.weighty = 0;
-
JButton loginButton = new JButton("Login");
loginButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
- loginEvent.emit(userNameField.getText(),
- passwordField.getText(), channelNameField.getText());
+ loginEvent.emit(userNameField.getText(), passwordField.getText(),
+ channelNameField.getText());
}
});
add(loginButton, c);
+ c.weightx = 0;
+ add(Box.createHorizontalStrut(10), c);
+
c.gridwidth = GridBagConstraints.REMAINDER;
+ c.weightx = 1;
JButton cancelButton = new JButton("Abbrechen");
cancelButton.addActionListener(new ActionListener() {
@Override
@@ -65,8 +68,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)));
}
@Override