Skip to content
Snippets Groups Projects
Select Git revision
  • 23c93bdc1a71718b06a175b272ce0f3196cf8ddb
  • elen90089 default
  • main protected
3 results

source_python.cc

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;
        }
    }