diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-29 01:16:25 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-29 01:16:25 +0200 |
commit | 5a0be3261a52f6a0849941283487d08212a35983 (patch) | |
tree | 4c2d808cb69ca28e0fa8d61d30330fa631fe5207 /src/jrummikub/view/PlayerPanel.java | |
parent | 5a7118587f26c6cb54b7d7771fda4a96747e492a (diff) | |
download | JRummikub-5a0be3261a52f6a0849941283487d08212a35983.tar JRummikub-5a0be3261a52f6a0849941283487d08212a35983.zip |
Fix some off-by-one painting problems
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@15 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/PlayerPanel.java')
-rw-r--r-- | src/jrummikub/view/PlayerPanel.java | 6 |
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(); |