summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/PlayerPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/view/PlayerPanel.java')
-rw-r--r--src/jrummikub/view/PlayerPanel.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/jrummikub/view/PlayerPanel.java b/src/jrummikub/view/PlayerPanel.java
index 1688d7c..e9ffff3 100644
--- a/src/jrummikub/view/PlayerPanel.java
+++ b/src/jrummikub/view/PlayerPanel.java
@@ -65,7 +65,7 @@ public class PlayerPanel extends JPanel implements IPlayerPanel {
layout.setConstraints(currentPlayerNameLabel, c);
panel.add(currentPlayerNameLabel);
- sortByNumberButton = new JButton("<html>Sort by<br>number");
+ sortByNumberButton = new JButton("<html><center>Sort by<br>number");
sortByNumberButton.setPreferredSize(new Dimension(85, 50));
c.gridwidth = GridBagConstraints.RELATIVE;
c.gridheight = GridBagConstraints.REMAINDER;
@@ -73,14 +73,13 @@ public class PlayerPanel extends JPanel implements IPlayerPanel {
layout.setConstraints(sortByNumberButton, c);
panel.add(sortByNumberButton);
- sortByColorButton = new JButton("<html>Sort by<br>color");
+ sortByColorButton = new JButton("<html><center>Sort by<br>color");
sortByColorButton.setPreferredSize(new Dimension(85, 50));
c.gridwidth = GridBagConstraints.REMAINDER;
c.insets = new Insets(15, 5, 20, 0);
layout.setConstraints(sortByColorButton, c);
panel.add(sortByColorButton);
-
return panel;
}
@@ -118,7 +117,6 @@ public class PlayerPanel extends JPanel implements IPlayerPanel {
GridBagConstraints c = new GridBagConstraints();
setLayout(layout);
- setBorder(new CustomBorder(Color.BLACK, 1, 0, 0, 0));
setBackground(Color.LIGHT_GRAY);
JPanel leftPanel = createLeftPanel();