summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control/network')
-rw-r--r--src/jrummikub/control/network/NetworkSettingsControl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jrummikub/control/network/NetworkSettingsControl.java b/src/jrummikub/control/network/NetworkSettingsControl.java
index 3c8dc42..8afe49e 100644
--- a/src/jrummikub/control/network/NetworkSettingsControl.java
+++ b/src/jrummikub/control/network/NetworkSettingsControl.java
@@ -5,7 +5,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
-import jrummikub.control.SettingsControl;
+import jrummikub.control.AbstractSettingsControl;
import jrummikub.model.GameSettings;
import jrummikub.model.PlayerSettings;
import jrummikub.model.PlayerSettings.Type;
@@ -15,7 +15,7 @@ import jrummikub.view.IView;
/**
* Settings for network games, entered by host
*/
-public class NetworkSettingsControl extends SettingsControl {
+public class NetworkSettingsControl extends AbstractSettingsControl {
private String nickname;
/**
@@ -30,9 +30,9 @@ public class NetworkSettingsControl extends SettingsControl {
*/
public NetworkSettingsControl(String nickname, IView view,
GameSettings settings) {
+ super(view, settings);
this.nickname = nickname;
- this.view = view;
- this.settings = settings;
+
view.getSettingsPanel().enableNetworkMode(true);
view.getSettingsPanel().setPlayerNamesEditable(
Collections.<Boolean> emptyList());