String src;  if (acc.registered) src = "gui/resources/green.gif"; else src = "gui/resources/red.gif";  ImageIcon img = new ImageIcon(cl .getResource(src)); params.clear(); params.add(accId); params.add("name"); img.setDescription((String) execute( "core.accountGet", params) + " (# "+ acc.id +")"); list1.set(i, img);
    public void jButton3MouseClicked(java.awt.event.MouseEvent evt) {        int i = jList1.getSelectedIndex();        if (i > -1) {            Integer accId = new Integer(((Account) accounts.elementAt(i)).id);            setValues(accId);            modified = false;            restoreColor();            jButton3.setEnabled(false);        }    }