Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); TodoFilter filter = myFilters.get(row); if (isSelected) { setForeground(UIUtil.getTableSelectionForeground(true)); } else { if (filter.isEmpty()) { setForeground(JBColor.RED); } else { setForeground(UIUtil.getTableForeground()); } } return this; }