if(!connect(host, port)) { String error = "Error: could not connect to server at " +				host + ":" + port + "."; new AlertDialog(frame, "Host a Game", error).show(); frame.setVisible(false); die(); }
if(!connect(host, port)) { StringBuffer error = new StringBuffer(); error.append( "Error: could not connect to server at " ) .append( host ) .append( ":" ) .append( port ) .append( "." ); new AlertDialog(frame, "Host a Game", error.toString()).show(); frame.setVisible(false); die(); }
    public Client(String name, String host, int port) {    	// construct new client    	this(name);    	    	// try to connect		if(!connect(host, port)) {			String error = "Error: could not connect to server at " +				host + ":" + port + ".";			new AlertDialog(frame, "Host a Game", error).show();			frame.setVisible(false);			die();		}				// wait for full connection		retrieveServerInfo();    }