img.setDescription((String) execute("core.accountGet", params));
img.setDescription((String) execute("core.accountGet", params) + " (# "+ n.toString()+")");
    public Gui() {        initComponents();        try {            accfile = System.getProperty("user.home", ".") + "/.partiSIPation/gui_config.xml";                        readConfig();                        print("Try to register GUI ("+GUI_HOST+":"+GUI_PORT+") at core ("+CORE_HOST+":"+CORE_PORT+").");                        client = new XmlRpcClientLite(InetAddress.getByName(CORE_HOST)                    .getHostName(), CORE_PORT);            server = new WebServer(GUI_PORT, InetAddress                    .getByName(GUI_HOST));            GuiStub guiStub = new GuiStub(this);            server.start();            server.addHandler("gui", guiStub);            // call REGISTER_GUI immediately after GUI has been opened            params.clear();            params.addElement(GUI_HOST);            params.addElement(new Integer(GUI_PORT));            Object o = execute("core.registerGui", params, 3000);            if (o == null) {                print("ERROR: GUI not registered. Check your configuration file.");                tryAgain = false;            } else if (((String) o).equalsIgnoreCase("OK")) {                print("GUI registered.");                                params.clear();                o = execute("core.accountGetAll", params);                int a = 0;                if (o != null && o instanceof Vector) {                    Vector v = (Vector) o;                    Enumeration e = v.elements();                    while (e.hasMoreElements()) {                        Integer n = (Integer) e.nextElement();                        ImageIcon img = new ImageIcon(cl                                .getResource("gui/resources/red.gif"));                        params.clear();                        params.add(n);                        params.add("name");                        img.setDescription((String) execute("core.accountGet", params));                        list1.addElement(img);                        Account acc = new Account(n.intValue(), false);                        accounts.add(acc);                        a++;                    }                    print("Got " + a + " accounts.");                                        params.clear();                    execute("core.registerAuto", params);                                    }            } else {                print("ERROR: GUI not registered.");                tryAgain = false;            }                       Enumeration e = phonebook.elements();            while (e.hasMoreElements()) {                Contact con = (Contact) e.nextElement();                list3.addElement(con.name);            }        } catch (MalformedURLException e1) {            e1.printStackTrace();        } catch (UnknownHostException e1) {            e1.printStackTrace();        }    }