Bill Tschumy schrieb:

> Why is the table allocating so much space to the column?

How about trying to set the second column to be resizable?

>          column = getColumnModel().getColumn(0);
>          column.setPreferredWidth(20);
>          column.setMinWidth(20);
>          column.setMaxWidth(20);
>          column.setResizable(false);
>
>          column = getColumnModel().getColumn(1);
>          column.setResizable(false);

Set this to true. This might solve your resize problems,
since for now the JTable has the problem, that according
to the ColumnModel it is not allowed to resize but the container
of the JTable donates it more spaces. Thus the JTable streches
the columns on its own.

--
Christian Pesch - Software Engineer
[EMAIL PROTECTED] - fon +49.40.325587.505  fax .999
CoreMedia AG - www.coremedia.com - 0700-COREMEDIA
Erste Brunnenstra�e 1, 20459 Hamburg, Germany

CoreMedia - Think ahead! We're there.




_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to