summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-04-28 15:57:21 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-04-28 15:57:21 +0200
commit082b699c326f219d78c9269a7a9b53c066489c4d (patch)
treef3d056626ff18306993f270a524f20f5187b7e59
parentdcba4cc235ae698b9dc2dcefefa638e19231ea41 (diff)
downloadJRummikub-082b699c326f219d78c9269a7a9b53c066489c4d.tar
JRummikub-082b699c326f219d78c9269a7a9b53c066489c4d.zip
Set default window size
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@10 72836036-5685-4462-b002-a69064685172
-rw-r--r--src/jrummikub/view/PlayerPanel.java10
-rw-r--r--src/jrummikub/view/View.java1
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("<html>Sort by<br>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("<html>Sort by<br>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());