void (@NotNull TableColumn column, int additionalWidth) { int checkboxWidth = new JCheckBox().getPreferredSize().width + additionalWidth; column.setResizable(false); column.setPreferredWidth(checkboxWidth); column.setMaxWidth(checkboxWidth); column.setMinWidth(checkboxWidth); }