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