From f304f20cbccca0fb959a4d2fabb31946e11580cb Mon Sep 17 00:00:00 2001 From: Bennet Gerlach Date: Tue, 21 Jun 2011 01:44:12 +0200 Subject: fixed doSeeHandSize git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@523 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/impl/SettingsPanel.java | 4 ++-- src/jrummikub/view/impl/SidePanel.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jrummikub/view') diff --git a/src/jrummikub/view/impl/SettingsPanel.java b/src/jrummikub/view/impl/SettingsPanel.java index bbd5262..7140bfc 100644 --- a/src/jrummikub/view/impl/SettingsPanel.java +++ b/src/jrummikub/view/impl/SettingsPanel.java @@ -356,7 +356,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel { .setText(Integer.toString(gameSettings.getJokerNumber())); timeLabel.setText(gameSettings.getTotalTime() + " Sekunden"); noLimitsLabel.setText(gameSettings.isNoLimits() ? "An" : "Aus"); - seeHandSizeLabel.setText(gameSettings.doSeeHandSize() ? "An" : "Aus"); + seeHandSizeLabel.setText(gameSettings.getSeeHandSize() ? "An" : "Aus"); colorLabelPanel.removeAll(); @@ -384,7 +384,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel { jokerNumberSpinner.setValue(gameSettings.getJokerNumber()); timeSpinner.setValue(gameSettings.getTotalTime()); noLimitsBox.setSelected(gameSettings.isNoLimits()); - seeHandSizeBox.setSelected(gameSettings.doSeeHandSize()); + seeHandSizeBox.setSelected(gameSettings.getSeeHandSize()); } private void updatePlayerSettingsPanel(int i, PlayerSettings settings, diff --git a/src/jrummikub/view/impl/SidePanel.java b/src/jrummikub/view/impl/SidePanel.java index facf430..d17838f 100644 --- a/src/jrummikub/view/impl/SidePanel.java +++ b/src/jrummikub/view/impl/SidePanel.java @@ -334,7 +334,7 @@ class SidePanel extends JPanel implements ISidePanel { GridBagConstraints c = new GridBagConstraints(); c.gridx = 0; c.gridy = 0; - c.gridheight = gameSettings.doSeeHandSize() ? 3 : 2; + c.gridheight = gameSettings.getSeeHandSize() ? 3 : 2; c.weighty = 1; c.insets = new Insets(4, 4, 4, 4); playerColor = new JLabel(ImageUtil.createColorIcon( @@ -376,7 +376,7 @@ class SidePanel extends JPanel implements ISidePanel { playerStatus = new JLabel(status); add(playerStatus, c); - if (gameSettings.doSeeHandSize()) { + if (gameSettings.getSeeHandSize()) { JLabel handSizeLabel = new JLabel("Handsteine: "); JLabel handSizeInfo = new JLabel("" + player.getHand().getSize()); c.gridy = 2; -- cgit v1.2.3