paintBackground(g, list);
  public void paint(Graphics g, JComponent c)  {    int nrows = list.getModel().getSize();    if (nrows == 0)      return;    maybeUpdateLayoutState();    ListCellRenderer render = list.getCellRenderer();    ListModel model = list.getModel();    ListSelectionModel sel = list.getSelectionModel();    int lead = sel.getLeadSelectionIndex();    Rectangle clip = g.getClipBounds();    paintBackground(g, list);    for (int row = 0; row < nrows; ++row)      {        Rectangle bounds = getCellBounds(list, row, row);        if (bounds.intersects(clip))          paintCell(g, row, bounds, render, model, sel, lead);      }  }