You could either override the prepareRenderer method of JTable, or create a custom TableCellRenderer. Below is semi-pseudo code for the first method


//this set contains the indexes of the...