img.setDescription(""+accountId);
params.clear(); params.add(new Integer(n)); params.add("name"); img.setDescription((String) gui.execute("core.accountGet", params));
    public boolean changeRegStatus(int accountId, boolean registered) {                JOptionPane.showMessageDialog(gui, "ID: "+ accountId + " REGISTERED: " + registered,                "ChangeRegStatus", JOptionPane.PLAIN_MESSAGE);                Enumeration e = gui.accounts.elements();        int i = 0;        while (e.hasMoreElements()) {            Account acc = (Account) e.nextElement();            int n = acc.id;            if (n == accountId) {                if (registered) {                    acc.setRegistered(true);                    ImageIcon img = new ImageIcon(cl                            .getResource("gui/resources/green.gif"));                    img.setDescription(""+accountId);                    gui.list1.set(i, img);                    //gui.list1.set(i, "#" + accountId + ": registered");                } else {                    acc.setRegistered(false);                    ImageIcon img = new ImageIcon(cl                            .getResource("gui/resources/red.gif"));                    img.setDescription(""+accountId);                    gui.list1.set(i, img);                    //gui.list1.set(i, "#" + accountId + ": not registered");                }                break;            }            i++;        }        return true;    }