@Override
  public Component getListCellRendererComponent(JList list, Object value,
      int index, boolean isSelected, boolean cellHasFocus) {

    // Assumes the stuff in the list has a pretty toString
    setText (value.toString ());

    // here the highlighting of every second row is defined
    if ( ( index + 2 ) % 4 == 0 ) setBackground (HIGHLIGHTING);
    else if ( ( index + 1 ) % 4 == 0 ) setBackground (HIGHLIGHTING);
    else
      setBackground (Color.WHITE);

    if ( cellHasFocus ) {
      setBackground (Color.BLUE);
    }
    return this;
  }