public void reallocate(int columns, int rows) {
    buffer = new Cell[columns][rows];
    physical = new Cell[columns][rows];

    for (int row = 0; row < rows; row++) {
      for (int column = 0; column < columns; column++) {
        buffer[column][row] = new Cell();

        physical[column][row] = new Cell();
        physical[column][row].unset();
      }
    }

    this.columns = columns;
    this.rows = rows;
  }
Represents a buffer of the terminal screen for double-buffering.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/terminal/impl/ScreenBuffer.java