Skip to content
Snippets Groups Projects
Commit 981e7cbc authored by Hai HoDac's avatar Hai HoDac
Browse files

Chat function worked! re-commit

parent 7f10c942
No related branches found
No related tags found
2 merge requests!18Master,!17Hai
package client;
import remote.IClientUpdate;
import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class ClientUpdate extends UnicastRemoteObject implements IClientUpdate, Serializable {
private Client client;
public ClientUpdate(Client client) throws RemoteException
{
super();
this.client = client;
}
@Override
public boolean notifyClient(String fromClient, String newUsername) throws RemoteException
{
client.getChatScreen().getUserListArea().setText(newUsername);
return true;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment