code: public Terminal createTerminalEmulator() {
          Window window;
          if(!forceAWTOverSwing && hasSwing()) {
              window = createSwingTerminal();
          }
          else {
              window = createAWTTerminal();
          }
  
          if(autoOpenTerminalFrame) {
              window.setVisible(true);
          }
          return (Terminal)window;
      }
docs: Creates a new terminal emulator window which will be either Swing-based or AWT-based depending on what is
  available on the system
  @return New terminal emulator exposed as a {@link Terminal} interface