ScorePanel: Make round number column less wide
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@321 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
7404566d46
commit
2b38167087
1 changed files with 9 additions and 3 deletions
|
@ -91,7 +91,7 @@ class ScorePanel extends JPanel implements IScorePanel {
|
|||
private void addPlayerNames() {
|
||||
GridBagConstraints c = new GridBagConstraints();
|
||||
c.fill = GridBagConstraints.BOTH;
|
||||
c.weightx = 1.0;
|
||||
c.weightx = 0.3;
|
||||
c.weighty = 0.0;
|
||||
c.insets = new Insets(0, 7, 0, 7);
|
||||
|
||||
|
@ -99,6 +99,8 @@ class ScorePanel extends JPanel implements IScorePanel {
|
|||
roundHead.setHorizontalAlignment(JLabel.CENTER);
|
||||
innerPanel.add(roundHead, c);
|
||||
|
||||
c.weightx = 1.0;
|
||||
|
||||
for (Iterator<PlayerSettings> it = players.iterator(); it.hasNext();) {
|
||||
PlayerSettings player = it.next();
|
||||
|
||||
|
@ -118,7 +120,7 @@ class ScorePanel extends JPanel implements IScorePanel {
|
|||
private void addScoreRow(Score score, int n) {
|
||||
GridBagConstraints c = new GridBagConstraints();
|
||||
c.fill = GridBagConstraints.BOTH;
|
||||
c.weightx = 1.0;
|
||||
c.weightx = 0.3;
|
||||
c.weighty = 0.0;
|
||||
c.gridwidth = 1;
|
||||
c.insets = new Insets(0, 7, 0, 7);
|
||||
|
@ -127,6 +129,8 @@ class ScorePanel extends JPanel implements IScorePanel {
|
|||
roundLabel.setHorizontalAlignment(JLabel.CENTER);
|
||||
innerPanel.add(roundLabel, c);
|
||||
|
||||
c.weightx = 1.0;
|
||||
|
||||
for (int i = 0; i < score.getPoints().size(); ++i) {
|
||||
if (i == score.getPoints().size() - 1) {
|
||||
c.gridwidth = GridBagConstraints.REMAINDER;
|
||||
|
@ -141,7 +145,7 @@ class ScorePanel extends JPanel implements IScorePanel {
|
|||
private void addAccumulatedScore() {
|
||||
GridBagConstraints c = new GridBagConstraints();
|
||||
c.fill = GridBagConstraints.BOTH;
|
||||
c.weightx = 1.0;
|
||||
c.weightx = 0.3;
|
||||
c.weighty = 0.0;
|
||||
c.insets = new Insets(0, 7, 0, 7);
|
||||
|
||||
|
@ -149,6 +153,8 @@ class ScorePanel extends JPanel implements IScorePanel {
|
|||
accumLabel.setHorizontalAlignment(JLabel.CENTER);
|
||||
innerPanel.add(accumLabel, c);
|
||||
|
||||
c.weightx = 1.0;
|
||||
|
||||
for (int i = 0; i < accumulatedScore.getPoints().size(); ++i) {
|
||||
if (i == accumulatedScore.getPoints().size() - 1) {
|
||||
c.gridwidth = GridBagConstraints.REMAINDER;
|
||||
|
|
Reference in a new issue