void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead)
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead)
  void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend,                 ListModel data, ListSelectionModel sel, int lead)  {    boolean is_sel = list.isSelectedIndex(row);    boolean has_focus = false;    Component comp = rend.getListCellRendererComponent(list,                                                       data.getElementAt(row),                                                       0, is_sel, has_focus);    g.translate(bounds.x, bounds.y);    comp.setBounds(new Rectangle(0, 0, bounds.width, bounds.height));    comp.paint(g);    g.translate(-bounds.x, -bounds.y);  }