private ZapTextArea getTxtOutput ( ) { if ( txtOutput == null ) { txtOutput = new ZapTextArea ( ) ; txtOutput . setEditable ( false ) ; txtOutput . setLineWrap ( true ) ; txtOutput . setName ( "" ) ; txtOutput . addMouseListener ( new java . awt . event . MouseAdapter ( ) { @ Override public void mousePressed ( java . awt . event . MouseEvent e ) { showPopupMenuIfTriggered ( e ) ; } @ Override public void mouseReleased ( java . awt . event . MouseEvent e ) { showPopupMenuIfTriggered ( e ) ; } private void showPopupMenuIfTriggered ( java . awt . event . MouseEvent e ) { if ( e . isPopupTrigger ( ) ) { View . getSingleton ( ) . getPopupMenu ( ) . show ( e . getComponent ( ) , e . getX ( ) , e . getY ( ) ) ; } } } ) ; } return txtOutput ; }
This method initializes txtOutput