@Override
	public Component getListCellRendererComponent(JList<? extends RiverComponent> list,
			RiverComponent value, int index, boolean isSelected, boolean cellHasFocus) {
		
		if (isSelected) {
            setBackground(list.getSelectionBackground());
            setForeground(list.getSelectionForeground());
            setTextColor (Color.BLUE);
            
        } else {
            setBackground(list.getBackground());
        	setForeground(list.getForeground());
        	setTextColor(Color.BLACK);
        }
//    	setBackground(value.getRiver().getRiverColor(isSelected));
    	topPanel.setBackground(River.getRiverColor(value.getRiver().getWwTopLevel()));
		
		riverNameLabel.setText(value.getRiver().getRiverName());
		wwTopLevelLabel.setText ("\u02AC" + value.getRiver().getWwTopLevel());
		tripFromToLabel.setText ("   " + value.getRiver().getTripFrom() + " \u25BA " + value.getRiver().getTripTo());
		
		return this;
	}