public void setUsers(User[] users) {
        usersModel.clear();

        Runnable adder = new Runnable () {
            @Override
            public void run () {
                usersModel.add( usersQueue.poll() );
            }
        };

        try {
            for (User user : users) {
                usersQueue.add(user);
                if ( SwingUtilities.isEventDispatchThread() )
                    SwingUtilities.invokeLater(adder);
                else
                    SwingUtilities.invokeAndWait(adder);
            }
        } catch (InterruptedException | InvocationTargetException e) {
            ClientLogger.log("Chyba pri nastavovani seznamu uzivatelu: " + e.getMessage(), ClientLogger.ERROR);
        }
    }