public Component getListCellRendererComponent( JList list, Object value, int modelIndex, boolean isSelected, boolean cellHasFocus )
  {
    setComponentOrientation( list.getComponentOrientation() );
    if( isSelected )
    {
      setBackground( list.getSelectionBackground() );
      setForeground( list.getSelectionForeground() );
    }
    else
    {
      setBackground( list.getBackground() );
      setForeground( list.getForeground() );
    }

    setLabelsValues( list, value, isSelected );
    setBorder( (cellHasFocus) ? UIManager.getBorder( "List.focusCellHighlightBorder" ) : g_noFocusBorder );

    return this;
  }
public Component getListCellRendererComponent ( JList list , Object value , int modelIndex , boolean isSelected , boolean cellHasFocus ) { setComponentOrientation ( list . getComponentOrientation ( ) ) ; if ( isSelected ) { setBackground ( list . getSelectionBackground ( ) ) ; setForeground ( list . getSelectionForeground ( ) ) ; } else { setBackground ( list . getBackground ( ) ) ; setForeground ( list . getForeground ( ) ) ; } setLabelsValues ( list , value , isSelected ) ; setBorder ( ( cellHasFocus ) ? UIManager . getBorder ( "List.focusCellHighlightBorder" ) : g_noFocusBorder ) ; return this ; }
@param list
@param value
@param modelIndex
@param isSelected
@param cellHasFocus
@return