From d223eaaa9839dc974b5d51cbd004f92818e2ada4 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Mon, 13 Jun 2011 23:57:02 +0200 Subject: es gibt eine AbstractSettingsControl git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@427 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/network/NetworkSettingsControl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jrummikub/control/network') 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. emptyList()); -- cgit v1.2.3