May be it would be nice put indicate what you've tried & did not suite U !
I would sugget you to drop first your JTable on a JScrollPane .
Firstly,
Doesn't
void sizeColumnsToFit ( int resizingColumn) fit your needs ?
Secondly,
I would play (extend) with the
DefaultTableColumnModel() to set the width via access to the
javax.swing.table.TableColumn.
Enumeration enum = myJTable.getColumns();
TableColumn tc = null;
while (enum.hasMoreElement())
{
tc = (TableColumn) enum.nexElement();
//
dowhatYouWant
tc....
}
[ January 29, 2002: Message edited by: Thomas SMETS ]