void (final JTableHeader tableHeader, final int preferredWidth, int columnIdx) { myFilesTable.getColumnModel().getColumn(columnIdx).setCellRenderer(new BooleanTableCellRenderer()); final TableColumn tableColumn = tableHeader.getColumnModel().getColumn(columnIdx); tableColumn.setWidth(preferredWidth); tableColumn.setPreferredWidth(preferredWidth); tableColumn.setMinWidth(preferredWidth); tableColumn.setMaxWidth(preferredWidth); }