public ChatClientImpl(final String host, final String name)
	    throws RemoteException {
	super();
	EventQueue.invokeLater(new Runnable() {
	    @Override
	    public void run() {
		try {
		    WindowChatClient window = new WindowChatClient(
			    ChatClientImpl.this);
		    chatroomsMap = new HashMap<String, ChatroomServer>();
		    try {
			Registry registry = LocateRegistry.getRegistry(host);
			chatRegistry = (ChatRegistry) registry
				.lookup("ChatRegistry");
			register(name);
			window.setTitle(id);
		    } catch (NotBoundException e) {
			e.printStackTrace();
		    } catch (AccessException e) {
			e.printStackTrace();
		    } catch (RemoteException e) {
			e.printStackTrace();
		    }
		} catch (Exception e) {
		    e.printStackTrace();
		}
	    }
	});
    }