public void setSelectedItem(Object element) {
        if (element == null) {
            if (elementIndex != -1) {
                elementIndex = -1;
                fireContentsChanged(this, -1, -1);
            }
        } else if (element instanceof String) {
            int index = 0;
            String name = (String)element;
            for (AccountRecord a : accountList) {
                if (a.getName().equals(name)) {
                    if (elementIndex != index) {
                        elementIndex = index;
                        fireContentsChanged(this, -1, -1);
                    }
                    
                    break;
                }
                
                index++;
            }
        }
    }