Skip to content
Snippets Groups Projects
Select Git revision
  • 46fe0c0cc53c35011758a74fc9f981d78f46f8db
  • master default protected
2 results

visualize.cpython-36.pyc

Blame
  • ClientUpdate.java 624 B
    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().getSentMessageToComboBox().addItem(newUsername);
    
            return true;
        }
    }