I have been investigating how to do it, but the only thing I find is to create another class extending from DefaultTableCellRenderer but the problem I have is that I already have the code that creates the table done, the question is if I want the background of a specific cell of the table has a gray background as it would be, or it must be done by creating a class extending DefaultTableCellRenderer. the idea is to change the color using a method something like jTable1.setcolor or something like that. it happens that in my code I have to show the highest and lowest data of the table by changing their background color so what I want is to change the background of the cell in the table that I get which is the cell after checking which are the data that I should change the color
You can create a class that is responsible for doing the same as shown in this example:
We then apply this class to the column of interest in the table