Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component component = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (component instanceof JLabel comp) { comp.setHorizontalAlignment(SwingConstants.CENTER); if ("".equals(value)) { comp.setForeground(JBColor.GRAY); comp.setText(JavaCompilerBundle.message("settings.same.as.language.level")); } else { comp.setForeground(table.getForeground()); } } return component; }