summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-11 02:19:23 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-11 02:19:23 +0200
commit630cdea1d9383aee75a984867682459d06c7c61a (patch)
treec6b6aedd86e9d4b3f698c6121f97e11376725d7f /src/jrummikub/view
parente176dc46082c2e73daf82cafb5e6e10653db64eb (diff)
downloadJRummikub-630cdea1d9383aee75a984867682459d06c7c61a.tar
JRummikub-630cdea1d9383aee75a984867682459d06c7c61a.zip
Make game offers, withdrawals (untested) and requests work
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@408 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r--src/jrummikub/view/impl/GameListPanel.java15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/jrummikub/view/impl/GameListPanel.java b/src/jrummikub/view/impl/GameListPanel.java
index eae424a..dae0f27 100644
--- a/src/jrummikub/view/impl/GameListPanel.java
+++ b/src/jrummikub/view/impl/GameListPanel.java
@@ -4,7 +4,6 @@ import java.awt.Color;
import java.awt.Component;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
-import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
@@ -163,16 +162,24 @@ class GameListPanel extends JPanel implements IGameListPanel {
JLabel hostLabel, playerCountLabel;
GameDataCellRenderer() {
- setLayout(new GridLayout(1, 2));
+ setLayout(new GridBagLayout());
+ GridBagConstraints c = new GridBagConstraints();
+ c.fill = GridBagConstraints.BOTH;
+ c.gridwidth = 1;
+ c.weightx = 1;
+ c.weighty = 1;
+
hostLabel = new JLabel();
hostLabel.setOpaque(true);
hostLabel.setHorizontalAlignment(JLabel.LEFT);
- add(hostLabel);
+ add(hostLabel, c);
playerCountLabel = new JLabel();
playerCountLabel.setOpaque(true);
playerCountLabel.setHorizontalAlignment(JLabel.RIGHT);
- add(playerCountLabel);
+
+ c.gridwidth = GridBagConstraints.REMAINDER;
+ add(playerCountLabel, c);
}
@Override