Is there any way to change the background color of a particular cell directly by its row index and column index ?
Component comp = table.findComponentAt(row, column);
comp.setBackground(Color.RED);
I tried above but it change the background color of whole table. How to change the background color of that particular cell ?
As I have seen there are two many questions and solutions related to changing color of a cell. But I am looking for a simple solution by which I could change the color of a cell directly by its index.