code: private void updateResult() {
  
          if (gridFormat) {
  
              // in case 'help' has removed the grid
              if (bHelp) {
                  pResult.removeAll();
                  pResult.add(gScrollPane, BorderLayout.CENTER);
                  pResult.doLayout();
                  gResult.fireTableChanged(null);
                  pResult.repaint();
  
                  bHelp = false;
              }
          } else {
              showResultInText();
          }
  
          txtCommand.selectAll();
          txtCommand.requestFocus();
      }
docs: Could somebody explain what the purpose of this method is?
  Contrary to the method name, it looks like it displays
  results only if gridFormat is off (seems like it  does
  nothing otherwise, except for clearing help text and moving focus).