Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final Component component = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value instanceof String && ((String)value).isEmpty()) { setText(JavaBundle.message("table.cell.constructors")); setForeground(NamedColorUtil.getInactiveTextColor()); } else if (value instanceof String) { setText((String)value); setForeground(UIUtil.getTableForeground(isSelected)); } return component; }