Hey here is a sample code 4 adjusting the width of 3 colums:
TableColumn column1 = null;
for (int i = 0; i < 3; i++) {
column1 = table.getColumnModel().getColumn(i);
if (i == 0) {
column1.setPreferredWidth(20);
} else {
if (i == 1){
column1.setPreferredWidth(160);
}
else
{
column1.setPreferredWidth(80);
}
}
}
Satanduvel