Terai Atsuhiro 2021-03-19 (金) 00:46:15

//tableHeader.setResizingAllowed(false);


//jtable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
//col.setPreferredWidth(50);
//col.setResizable(false);


TableColumn col = jtable.getColumnModel().getColumn(0);
col.setMinWidth(50);
col.setMaxWidth(50);


//col = jtable.getColumnModel().getColumn(1);
//col.setMinWidth(0);
//col.setMaxWidth(0);
TableColumn col = jtable.getColumnModel().getColumn(1);
col.setMinWidth(0);
col.setMaxWidth(0);

Fixed Column Example