for (int i = 0; i < columnCount - 1; i++) {
int minWidth = (int) settings.getColumnMin(i);
int maxWidth = (int) (settings.getColumnMax(i) * tableWidth);
TreeColumn column = treeTable.getColumn(i);
if (mode2 == MODE_AUTO)
column.pack(); // automatically resize the column
// check the values
if (column.getWidth() < minWidth) {
// ensure the table isn't incredibly small
if (!(columnCount * minWidth > tableWidth)) {
// column is too small, and the table is a reasonable size,