public void showField(int pos, Field field, boolean display, boolean selected,
    int fieldHeaderMaxLength, int fieldDescriptionMaxLength, boolean moveMode) {

    String fieldHeader = String.format("%-" + fieldHeaderMaxLength + "s", field.getHeader());
    String fieldDescription =
      String.format("%-" + fieldDescriptionMaxLength + "s", field.getDescription());

    int row = FIELD_START_ROW + pos;
    TerminalPrinter printer = getTerminalPrinter(row);
    if (selected) {
      String prefix = display ? "* " : "  ";
      if (moveMode) {
        printer.print(prefix);

        if (display) {
          printer.startBold();
        }

        printer.startHighlight().printFormat("%s = %s", fieldHeader, fieldDescription)
          .stopHighlight();

        if (display) {
          printer.stopBold();
        }

        printer.endOfLine();
      } else {
        printer.print(prefix);

        if (display) {
          printer.startBold();
        }

        printer.startHighlight().print(fieldHeader).stopHighlight().printFormat(" = %s",
          fieldDescription);

        if (display) {
          printer.stopBold();
        }

        printer.endOfLine();
      }
    } else {
      if (display) {
        printer.print("* ").startBold().printFormat("%s = %s", fieldHeader, fieldDescription)
          .stopBold().endOfLine();
      } else {
        printer.printFormat("  %s = %s", fieldHeader, fieldDescription).endOfLine();
      }
    }
  }
The screen where we can change the displayed fields, the sort key and the order of the fields.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/screen/field/FieldScreenView.java