Component (@NotNull TableCellRenderer renderer, int row, int column) { Component component = super.prepareRenderer(renderer, row, column); JTableHeader header = getTableHeader(); TableColumn resizingColumn = header.getResizingColumn(); if (myAutoResize && resizingColumn == null && !myNotAdjustableColumns.contains(column)) { updateColumnWidth(column, component.getPreferredSize().width, this); } return component; }