launch(client.getFrame());
    public void connectBot() {        ConnectDialog cd;        cd = new ConnectDialog(frame);        cd.show();        // verify dialog data        if(cd.name == null || cd.serverAddr == null || cd.port == 0) {            return;        }        // initialize game        client = BotFactory.getBot(BotFactory.TEST, frame, cd.name);        //client = new BotClient(frame, cd.name);  // verify connection        if(!client.connect(cd.serverAddr, cd.port)) {            server = null;            client = null;            new AlertDialog(frame, "Connect to a Game", "Error: could not connect.").show();            return;        }        // wait for full connection        client.retrieveServerInfo();    }