jtable change row color
Posted on 2006-11-07
I have a jtable and a button a dialog. the number of rows in the table is different every time the application is run. What i want to do is, when the button is clicked it runs a process and completes. when it finishes and a boolean is set true (if false do nothing) then i want to see which row is selected and change every row 's background to red that comes after the selected row.
So far I see no easy way to change the background of individual rows in a jtable so i'm assuming i'll need to use a renderer of sorts. Does anyone know how i can achieve this?