summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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());