void add(String value, DefaultListModel valuesLM, JList jList)
    {
        if ((value == null) || (value.length() == 0))
        {
            return;
        }
        int i = 0;
        for (Enumeration<?> e = valuesLM.elements(); e.hasMoreElements(); i++)
        {
            String s = (String)e.nextElement();
            int compare = s.compareTo(value);
            if (compare == 0)
            {
                return;
            }
            else if (compare > 0)
            {
                valuesLM.add(i, value);
                if (jList.isSelectedIndex(i))
                {
                    jList.removeSelectionInterval(i, i);
                }
                return;
            }
        }
        valuesLM.addElement(value);
    }