Package com.threerings.presents.client

Examples of com.threerings.presents.client.ClientAdapter


            // create and set our credentials
            client.setCredentials(
                new UsernamePasswordCreds(username, authkey));

            // we want to hide the client frame when we logoff
            client.addClientObserver(new ClientAdapter() {
                @Override
                public void clientDidLogoff (Client c)
                {
                    _frame.setVisible(false);
                }
View Full Code Here


        Client client = _client.getParlorContext().getClient();
        log.info("Connecting to localhost.");
        client.setServer("localhost", Client.DEFAULT_SERVER_PORTS);

        // we want to exit when we logged off or failed to log on
        client.addClientObserver(new ClientAdapter() {
            @Override
            public void clientFailedToLogon (Client c, Exception cause) {
                log.info("Client failed to logon: " + cause);
                System.exit(0);
            }
View Full Code Here

TOP

Related Classes of com.threerings.presents.client.ClientAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.