Minor fixups to get things running (and to get Atlantissonne working as a
JWS app, whee!). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1380 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ClientController.java,v 1.13 2002/03/11 19:51:24 mdb Exp $
|
// $Id: ClientController.java,v 1.14 2002/05/21 04:47:48 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.micasa.client;
|
package com.threerings.micasa.client;
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ public class ClientController extends Controller
|
|||||||
|
|
||||||
// create the logon panel and display it
|
// create the logon panel and display it
|
||||||
_logonPanel = new LogonPanel(_ctx);
|
_logonPanel = new LogonPanel(_ctx);
|
||||||
// _frame.setPanel(_logonPanel);
|
_frame.setPanel(_logonPanel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MiCasaApp.java,v 1.6 2002/02/09 20:47:11 mdb Exp $
|
// $Id: MiCasaApp.java,v 1.7 2002/05/21 04:47:48 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.micasa.client;
|
package com.threerings.micasa.client;
|
||||||
|
|
||||||
@@ -62,6 +62,7 @@ public class MiCasaApp
|
|||||||
// we want to exit when we logged off or failed to log on
|
// we want to exit when we logged off or failed to log on
|
||||||
client.addClientObserver(new ClientAdapter() {
|
client.addClientObserver(new ClientAdapter() {
|
||||||
public void clientFailedToLogon (Client c, Exception cause) {
|
public void clientFailedToLogon (Client c, Exception cause) {
|
||||||
|
Log.info("Client failed to logon [cause=" + cause + "].");
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
public void clientDidLogoff (Client c) {
|
public void clientDidLogoff (Client c) {
|
||||||
@@ -71,15 +72,12 @@ public class MiCasaApp
|
|||||||
|
|
||||||
// configure the client with some credentials and logon
|
// configure the client with some credentials and logon
|
||||||
String username = System.getProperty("username");
|
String username = System.getProperty("username");
|
||||||
if (username == null) {
|
if (username != null) {
|
||||||
username =
|
// create and set our credentials
|
||||||
"bob" + ((int)(Math.random() * Integer.MAX_VALUE) % 500);
|
Credentials creds = new UsernamePasswordCreds(username, "test");
|
||||||
|
client.setCredentials(creds);
|
||||||
|
client.logon();
|
||||||
}
|
}
|
||||||
|
|
||||||
// create and set our credentials
|
|
||||||
Credentials creds = new UsernamePasswordCreds(username, "test");
|
|
||||||
client.setCredentials(creds);
|
|
||||||
client.logon();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main (String[] args)
|
public static void main (String[] args)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MiCasaClient.java,v 1.12 2002/04/15 14:38:45 shaper Exp $
|
// $Id: MiCasaClient.java,v 1.13 2002/05/21 04:47:48 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.micasa.client;
|
package com.threerings.micasa.client;
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ public class MiCasaClient
|
|||||||
createContextServices();
|
createContextServices();
|
||||||
|
|
||||||
// for test purposes, hardcode the server info
|
// for test purposes, hardcode the server info
|
||||||
_client.setServer("bering", 4007);
|
_client.setServer("localhost", 4007);
|
||||||
|
|
||||||
// keep this for later
|
// keep this for later
|
||||||
_frame = frame;
|
_frame = frame;
|
||||||
@@ -180,5 +180,5 @@ public class MiCasaClient
|
|||||||
|
|
||||||
/** The prefix prepended to localization bundle names before looking
|
/** The prefix prepended to localization bundle names before looking
|
||||||
* them up in the classpath. */
|
* them up in the classpath. */
|
||||||
protected static final String MESSAGE_MANAGER_PREFIX = "rsrc.messages";
|
protected static final String MESSAGE_MANAGER_PREFIX = "rsrc.i18n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user