How can I set the color (or font) on a specific cell (row, column) in a JTable?
In order to set the color or font for a specific table cell you must create a custom TableCellRenderer. The easiest way to create one is to extend the DefaultTableCellRenderer. Note: Download the example source code that accompanies this article from Resources. The following custom TableCellRenderer will take a cell that holds an integer and make the cell red if the integer’s value is negative.