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
This commit is contained in:
parent
e176dc4608
commit
630cdea1d9
3 changed files with 254 additions and 31 deletions
|
@ -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
|
||||
|
|
Reference in a new issue