Wednesday, April 11, 2001 04:00 AM
I beleive you can use getColumnModel() on the table and then getColumn(int index) to get the column you want. From there you can call setMaxWidth() and setMinWidth() of the columns.
JTable table = new JTable(...);
JColumn column = table.getColumnModel().getColumn(0);
Or you could also create a custom TableColumnModel that sets up the widths for you and instantiate the JTable using that.