@Override
        public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected,
                boolean cellHasFocus)
        {
            text = (String) value;
            // background=isSelected?list.getSelectionBackground():list.getBackground();
            background = isSelected ? new Color(180, 189, 224) : new Color(249, 227, 174);
            foreground = isSelected ? list.getSelectionForeground() : list.getForeground();
            return this;
        }