How to change the background color of two alternating rows
i want to use only two colors for all table background which alternating rows must have different colors.How can i do it?
THANK YOU!
i want to use only two colors for all table background which alternating rows must have different colors.How can i do it?
THANK YOU!
See
http://blogs.sun.com/winston/entry/setting_table_column_style
and this list of additional solutions
http://www.google.com/search?q=java+table+alternating+background+color
http://www.sdnshare.com/view.jsp?id=503
THX M8S I DID IT BY:
if(i>=tablonun_satir_sayisi)
{
((DefaultTableModel)veri_alanlari.data_grid.Table_Grid.getModel()).addRow(yeni_satir_icin_bos_dizi);
tablonun_satir_sayisi++;
}
only by one row =solution:)