public static void fitAllColumnWidth(JTable table) {
        int columnCount = table.getColumnCount();
        for (int column = 0; column < columnCount; column++) {
            fitColumnWidth(table, column);
        }
    }