// Constructor to initialize client name and server location public C_GameClient(String name, String serverLoc) throws RemoteException, MalformedURLException, NotBoundException { model = new M_GameClient(name, this); Naming.rebind("client", model); this.name = name; SERVER_STUB_LOC = serverLoc; setSize(400, 400); setVisible(true); setTitle("Game Client - " + this.name); addWindowListener(this); view = new V_GameClient(); view.setName(name); view.setMouseListener(gameMouseListener); add(view); model.login(name, model); state = STATE.CONNECTED; }