public Receiver(ActionListener al, int port) {

        this.actionList = al;
        this.port = port;
        try {
            recvSock = new DatagramSocket(port);
        } catch (SocketException ex) {
            Logger.getLogger(Receiver.class.getName()).log(Level.SEVERE, null, ex);
        }

    }