Table newTable(Screen screen) {
    return new Table(screen);
  }
Helper class to build rows of columnized strings & build a table from those rows.

Sample usage:

<pre>
public Table createTable() {
  Table resultTable = TableBuilder.newTable();
  resultTable.setColumnSeparator(" | ");

  resultTable.newBlankRow();
  resultTable.newRow().newLeftCol("Displaying all fields for member: " + memberName);
  resultTable.newBlankRow();
  RowGroup rowGroup = resultTable.newRowGroup();
  rowGroup.newRow().newCenterCol("FIELD1").newCenterCol("FIELD2");
  rowGroup.newRowSeparator('-');
  for (int i = 0; i < counter; i++) {
    rowGroup.newRow().newLeftCol(myFirstField[i]).newLeftCol(mySecondField[i]);
  }
  resultTable.newBlankRow();

  return resultTable;
}
</pre>

Will result in this:

<pre>

Displaying all fields for member: Member1

FIELD1 | FIELD2 -------------- | --------------- My First Field | My Second Field Another Fld1 |
Another Fld2 Last Fld1 | Last Fld2

</pre>

@since GemFire 7.0
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/result/TableBuilder.java