Hy ,
I have a table , in which i am adding new rows , after 6 rows with data I want to add a empty row with the background color red then another 6 rows with white background
private void populate(){
DefaultTableModel model = (DefaultTableModel) table.getModel();
int i,j;
for(j=0;j<6;j++){
for(i=0;i<6;i++){
model.addRow(new Object[]{"dada","dadaddd"});
}
model.addRow(new Object[]{"",""});
}
}
How can i change the color of the empty row?