Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); setForeground(table.getForeground()); final String prefix = myNamespaces.get(row).getPrefix(); if (column == 1 && prefix == null || prefix.length() == 0) { setForeground(PlatformColors.BLUE); } else if (column == 0) { for (int i = 0; i < myNamespaces.size(); i++) { Namespace namespace = myNamespaces.get(i); if (i != row && namespace.getPrefix().equals(value)) { setForeground(JBColor.RED); break; } } } return this; }