write your TableRenderer using DefaultTableCellRenderer
and do your code in method
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
{
// check your condition here
if (row==1)
{
// what color do u want
setBackground(Color.GREEN);
}
}
in which you can set back ground to row
null
Message was edited by:
Prashant_SDN
> write your TableRenderer using
> DefaultTableCellRenderer
> and do your code in method
>
> public Component
> getTableCellRendererComponent(JTable table, Object
> value, boolean isSelected, boolean hasFocus, int
> row, int column)
>{
> k your condition here
> if (row==1)
> {
> // what color do u want
> setBackground(Color.GREEN);
> }
> }
> h you can set back ground to row
>
> null
>
> Message was edited by:
> Prashant_SDN
thank u