From 082b699c326f219d78c9269a7a9b53c066489c4d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 28 Apr 2011 15:57:21 +0200 Subject: Set default window size git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@10 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/PlayerPanel.java | 10 +++++----- src/jrummikub/view/View.java | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/jrummikub/view/PlayerPanel.java b/src/jrummikub/view/PlayerPanel.java index b4affd0..97942bd 100644 --- a/src/jrummikub/view/PlayerPanel.java +++ b/src/jrummikub/view/PlayerPanel.java @@ -58,7 +58,7 @@ public class PlayerPanel extends JPanel implements IPlayerPanel { currentPlayerNameLabel.setHorizontalTextPosition(JLabel.CENTER); currentPlayerNameLabel.setVerticalAlignment(JLabel.CENTER); currentPlayerNameLabel.setVerticalTextPosition(JLabel.CENTER); - currentPlayerNameLabel.setPreferredSize(new Dimension(200, 30)); + currentPlayerNameLabel.setPreferredSize(new Dimension(180, 30)); c.weightx = 0; c.weighty = 1; c.gridwidth = GridBagConstraints.REMAINDER; @@ -67,7 +67,7 @@ public class PlayerPanel extends JPanel implements IPlayerPanel { panel.add(currentPlayerNameLabel); sortByNumberButton = new JButton("Sort by
number"); - sortByNumberButton.setPreferredSize(new Dimension(95, 50)); + sortByNumberButton.setPreferredSize(new Dimension(85, 50)); c.gridwidth = GridBagConstraints.RELATIVE; c.gridheight = GridBagConstraints.REMAINDER; c.insets = new Insets(15, 0, 20, 5); @@ -75,7 +75,7 @@ public class PlayerPanel extends JPanel implements IPlayerPanel { panel.add(sortByNumberButton); sortByColorButton = new JButton("Sort by
color"); - sortByColorButton.setPreferredSize(new Dimension(95, 50)); + sortByColorButton.setPreferredSize(new Dimension(85, 50)); c.gridwidth = GridBagConstraints.REMAINDER; c.insets = new Insets(15, 5, 20, 0); layout.setConstraints(sortByColorButton, c); @@ -95,7 +95,7 @@ public class PlayerPanel extends JPanel implements IPlayerPanel { timeBar = new JProgressBar(0, 60); timeBar.setStringPainted(true); - timeBar.setPreferredSize(new Dimension(200, 30)); + timeBar.setPreferredSize(new Dimension(180, 30)); c.weightx = 0; c.weighty = 1; c.gridwidth = GridBagConstraints.REMAINDER; @@ -104,7 +104,7 @@ public class PlayerPanel extends JPanel implements IPlayerPanel { panel.add(timeBar); endTurnButton = new JButton("End turn"); - endTurnButton.setPreferredSize(new Dimension(200, 50)); + endTurnButton.setPreferredSize(new Dimension(180, 50)); c.gridheight = GridBagConstraints.REMAINDER; c.insets = new Insets(15, 0, 20, 0); layout.setConstraints(endTurnButton, c); diff --git a/src/jrummikub/view/View.java b/src/jrummikub/view/View.java index 52efc54..e2fd037 100644 --- a/src/jrummikub/view/View.java +++ b/src/jrummikub/view/View.java @@ -26,6 +26,7 @@ public class View extends JFrame implements IView { public View() { super("JRummikub"); + setSize(1000, 700); setDefaultCloseOperation(EXIT_ON_CLOSE); setLayout(new BorderLayout()); -- cgit v1.2.3