annotatedByList.clearSelection();
if (userIndex != -1) annotatedByList.setSelectedIndex(userIndex);
    void showAnnotations()    {        deleteBox.setSelected(false);        ExperimenterData userDetails = model.getUserDetails();        if (userDetails == null) return;        Map annotations = model.getAnnotations();        String[] owners = new String[annotations.size()];        Iterator i = annotations.keySet().iterator();        Long id;        int index = 0;        ownersMap = new HashMap();        List list;        ExperimenterData data;        while (i.hasNext()) {            id = (Long) i.next();            list = (List) annotations.get(id);            data = ((AnnotationData) list.get(0)).getOwner();            if (userDetails.getId() == id.intValue()) userIndex = index;            String n = "Name not available"; //TODO: REMOVE ASAP            try {                n = data.getLastName();            } catch (Exception e) {}            owners[index] = n;            ownersMap.put(new Integer(index), id);            index++;        }        //No annotation for the current user, so allow creation.        if (userIndex != -1) annotatedByList.setSelectedIndex(userIndex);        setComponentsEnabled(true);        formatUsersList(owners);        annotatedByList.clearSelection();        //annotatedByList.setSelectedIndex(userIndex);        showSingleAnnotation();    }