summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/impl/SettingsPanel.java
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-06-21 00:56:05 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-06-21 00:56:05 +0200
commit2f08091b65fdff96d3671549e74384ec8306668d (patch)
treeab4c56e0fa4ada543a99a7eb6f0ffaa14bea8b32 /src/jrummikub/view/impl/SettingsPanel.java
parenta0573a59282fb431d094d91ba388b7ba0c8fa69d (diff)
downloadJRummikub-2f08091b65fdff96d3671549e74384ec8306668d.tar
JRummikub-2f08091b65fdff96d3671549e74384ec8306668d.zip
Made showing of hand stone count working
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@520 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view/impl/SettingsPanel.java')
-rw-r--r--src/jrummikub/view/impl/SettingsPanel.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/jrummikub/view/impl/SettingsPanel.java b/src/jrummikub/view/impl/SettingsPanel.java
index 1560719..bbd5262 100644
--- a/src/jrummikub/view/impl/SettingsPanel.java
+++ b/src/jrummikub/view/impl/SettingsPanel.java
@@ -216,7 +216,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
}
@Override
- public IEvent1<Boolean> getChangeSeeHandSize() {
+ public IEvent1<Boolean> getChangeSeeHandSizeEvent() {
return changeSeeHandSizeEvent;
}
@@ -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.doSeeHandSize() ? "An" : "Aus");
colorLabelPanel.removeAll();
@@ -503,9 +503,10 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
makeOptionLabel(row++, "No Limits:");
noLimitsLabel = new JLabel();
noLimitsBox = createOptionCheckbox(changeNoLimitsEvent);
- seeHandSizeBox = createOptionCheckbox(changeSeeHandSizeEvent);
- makeOptionLabel(row++, "Steinanzahl anzeigen");
+ makeOptionLabel(row++, "Steinanzahl anzeigen:");
+ seeHandSizeLabel = new JLabel();
+ seeHandSizeBox = createOptionCheckbox(changeSeeHandSizeEvent);
makeOptionLabel(row, "Steinfarben:");
createColorSelectionPanel();
@@ -532,6 +533,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
optionsPanel.remove(noLimitsBox);
optionsPanel.remove(noLimitsLabel);
optionsPanel.remove(seeHandSizeBox);
+ optionsPanel.remove(seeHandSizeLabel);
optionsPanel.remove(colorSelectionPanel);
optionsPanel.remove(colorLabelPanel);
@@ -565,7 +567,7 @@ class SettingsPanel extends JPanel implements ISettingsPanel {
addOptionPanelComponent(jokerNumberLabel, false, row++);
addOptionPanelComponent(timeLabel, false, row++);
addOptionPanelComponent(noLimitsLabel, false, row++);
- addOptionPanelComponent(seeHandSizeBox, false, row++);
+ addOptionPanelComponent(seeHandSizeLabel, false, row++);
addOptionPanelComponent(colorLabelPanel, false, row++);
}