@Override
        public Component getListCellRendererComponent(JList jlist, 
                                                        Object o, 
                                                        int i, 
                                                        boolean isSelected, 
                                                        boolean cellHasFocus) {

            //int selectedIndex = ((Integer)o).intValue();
            
            if(isSelected){
                setBackground(jlist.getSelectionBackground());
                setForeground(jlist.getSelectionForeground());
            } else {
                setBackground(jlist.getBackground());
                setForeground(jlist.getForeground());
            }
            
            // TEST //System.out.println(o.getClass().toString());
            // Set the image icon, must use JLabel to set as the list item
            if(o instanceof JLabel){
                setIcon((ImageIcon)((JLabel)o).getIcon());
            }
                       
            return this;
        }