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 DetectedProjectRoot) { setText(((DetectedProjectRoot)value).getRootTypeName()); } return component; }