@Override
    public void currentUserList(String[] users) {
        //System.out.println("Here i am");
        if (mg != null) {
            this.users = users;
            String temp = "";
            if (mg.getjList1() != null) {
                temp = getUser(mg.getjList1().getSelectedIndex());
            }
            lm.removeAllElements();
            for (String s : users) {
                lm.addElement(s);
            }
            if (mg.getjList1() != null) {
                System.out.println(users.length);
                for (int i = 0; i < users.length; i++) {
                    System.out.println(temp);
                    System.out.println(users[i]);
                    if (users[i].equals(temp)) {
                        mg.getjList1().setSelectedIndex(i);
                    }
                }
            }
        }
        //mg.getjList1().setSelectedIndex(index);
        //mg.getjList1().updateUI();
        // mg.setjList1(new JList(lm));
    }