public SaveLabel(final JList<? extends T> list,final Object value,final int index,final boolean isSelected){
  labelIndex=index;
  if (isSelected) {
    setBackground(list.getSelectionBackground());
    setForeground(list.getSelectionForeground());
  }
 else {
    setBackground(list.getBackground());
    setForeground(list.getForeground());
  }
  setText(value.toString());
}

public SaveLabel ( final JList < ? extends T > list , final Object value , final int index , final boolean isSelected ) { labelIndex = index ; if ( isSelected ) { setBackground ( list . getSelectionBackground ( ) ) ; setForeground ( list . getSelectionForeground ( ) ) ; } else { setBackground ( list . getBackground ( ) ) ; setForeground ( list . getForeground ( ) ) ; } setText ( value . toString ( ) ) ; }
creates a new save label .
