Ti posto il mio renderer, l'unica cosa che ho fatto è stato settarlo alla tabella
Codice:
private class Renderer implements TableCellRenderer{
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
//table.getColumnModel().getColumn(0).setWidth(0);
JLabel label = new JLabel();
if(value!=null)
label.setText(value.toString());
if(isSelected){
label.setOpaque(true);
label.setBackground(Color.ORANGE);
}else
if((row % 2)==0){
label.setOpaque(true);
label.setBackground(new Color(166,202,240));
}else
label.setBackground(Color.WHITE);
return label;
}
}