docs: private void initGUI() {
  
          Panel pQuery   = new Panel();
          Panel pCommand = new Panel();
  
          // define a Panel pCard which takes four different cards/views:
          // tree of tables, command SQL text area, result window and an editor/input form
          pCard      = new Panel();
          layoutCard = new CardLayout(2, 2);
  
          pCard.setLayout(layoutCard);
  
          // four buttons at the top to quickly switch between the four views
          butTree    = new Button("Tree");
          butCommand = new Button("Command");
          butResult  = new Button("Result");
          butEditor  = new Button("Editor");
  
          butTree.addActionListener(this);
          butCommand.addActionListener(this);
          butResult.addActionListener(this);
          butEditor.addActionListener(this);
  
          Panel pButtons = new Panel();
  
          pButtons.setLayout(new GridLayout(1, 4, 8, 8));
          pButtons.add(butTree);
          pButtons.add(butCommand);
          pButtons.add(butResult);
          pButtons.add(butEditor);
  
          pResult = new Panel();
  
          pQuery.setLayout(new BorderLayout());
          pCommand.setLayout(new BorderLayout());
          pResult.setLayout(new BorderLayout());
  
          Font fFont = new Font("Dialog", Font.PLAIN, 12);
  
          txtCommand = new TextArea(5, 40);
  
          txtCommand.addKeyListener(this);
  
          txtResult = new TextArea(20, 40);
  
          txtCommand.setFont(fFont);
          txtResult.setFont(new Font("Courier", Font.PLAIN, 12));
  
          butExecute = new Button("Execute");
  
          butExecute.addActionListener(this);
          pCommand.add("South", butExecute);
          pCommand.add("Center", txtCommand);
  
          gResult = new Grid();
  
          setLayout(new BorderLayout());
          pResult.add("Center", gResult);
  
          tTree = new Tree();
  
          tTree.setMinimumSize(new Dimension(200, 100));
          gResult.setMinimumSize(new Dimension(200, 300));
  
          eEditor = new ZaurusEditor();
  
          pCard.add("tree", tTree);
          pCard.add("command", pCommand);
          pCard.add("result", pResult);
          pCard.add("editor", eEditor);
          fMain.add("Center", pCard);
          fMain.add("North", pButtons);
          doLayout();
          fMain.pack();
      }