summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/view/impl/PlayerPanel.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jrummikub/view/impl/PlayerPanel.java b/src/jrummikub/view/impl/PlayerPanel.java
index e07da5f..a16b32f 100644
--- a/src/jrummikub/view/impl/PlayerPanel.java
+++ b/src/jrummikub/view/impl/PlayerPanel.java
@@ -330,8 +330,12 @@ class PlayerPanel extends JPanel implements IPlayerPanel {
int buttonHeight = height - SIDE_PANEL_SEPARATOR - firstLineHeight;
float fontSize = (float) Math.sqrt(buttonWidth * buttonHeight) / 5;
float smallFontSize = (float) Math.sqrt(smallButtonWidth * buttonHeight) / 5;
- if (fontSize > MAX_BUTTON_FONT_SIZE)
+ if (fontSize > MAX_BUTTON_FONT_SIZE) {
fontSize = MAX_BUTTON_FONT_SIZE;
+ }
+ if (smallFontSize > MAX_BUTTON_FONT_SIZE) {
+ smallFontSize = MAX_BUTTON_FONT_SIZE;
+ }
handRowUpButton.setBounds(0, 0, handButtonWidth, getHeight() / 2);
handRowUpButton.setFont(handRowUpButton.getFont().deriveFont(
@@ -395,7 +399,7 @@ class PlayerPanel extends JPanel implements IPlayerPanel {
if (!enable) {
setEndTurnMode(false, false);
endTurnButton.setText("<html><center>Computer denkt nach");
- hand.setStones(Collections.<Pair<Stone,Position>>emptyList());
+ hand.setStones(Collections.<Pair<Stone, Position>> emptyList());
handRowDownButton.setForeground(Color.GRAY);
handRowDownButton.setEnabled(false);
handRowUpButton.setForeground(Color.GRAY);