public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
            // Assumes the stuff in the list has a pretty toString

            int color = Integer.parseInt(value.toString().substring(0, 1));
            setText(value.toString().substring(1));

            // based on the index you set the color.  This produces the every other effect.
            switch (color) {
                case 0:
                    setForeground(new Color(97, 73, 121));
                    break;
                case 1:
                    setForeground(new Color(85, 210, 117));
                    break;
                case 2:
                    setForeground(new Color(53, 53, 53));
                    break;
                case 3:
                    setForeground(new Color(228, 108, 12));
                    break;
                case 4:
                    setForeground(new Color(39, 63, 97));
                    break;
                case 5:
                    setForeground(new Color(148, 55, 53));
                    break;
                case 6:
                    setForeground(new Color(79, 99, 40));
                    break;
                case 7:
                    setForeground(new Color(255, 56, 243));
                    break;

            }

            return this;
        }