AutofitTableColumns.autoResizeTable(table,
false, //use the Column Header width as a minimum width
5, //how many extra pixels do you want on the end of each column
true //if you want the whole visible Area to be used
);