Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component result = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (!isSelected) { ValidationResult.Kind kind = ((MyTableModel)table.getModel()).getKind(row); if (kind == ValidationResult.Kind.ERROR) { result.setBackground(VALIDATION_ERROR_COLOR); } else if (kind == ValidationResult.Kind.CONFLICT) { result.setBackground(VALIDATION_CONFLICT_COLOR); } } return result; }