how to change color of selected row in jtable
hi to all
i am using this code to change color of selected row but it color all cells
TableCellRenderer table=DisplayTable.getCellRenderer(selectedRow,2);
Component c=DisplayTable.prepareRenderer(table,selectedRow,2);
if(model.getValueAt(selectedRow,6)!=null)
c.setForeground(Color.red);

