Set default window size
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@10 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
dcba4cc235
commit
082b699c32
2 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
Reference in a new issue