question: synchronized private void insertText ( String aString ) { AttributedString attribString = new AttributedString ( aString ) ; attribString . addAttribute ( Attribute . LANGUAGE , getLocale ( ) , 0 , aString . length ( ) ) ; TextHitInfo theCaret = TextHitInfo . afterOffset ( aString . length ( ) - 1 ) ; InputMethodEvent event = new InputMethodEvent ( fAwtFocussedComponent , InputMethodEvent . INPUT_METHOD_TEXT_CHANGED , attribString . getIterator ( ) , aString . length ( ) , theCaret , theCaret ) ; LWCToolkit . postEvent ( LWCToolkit . targetToAppContext ( fAwtFocussedComponent ) , event ) ; fCurrentText = null ; fCurrentTextAsString = null ; fCurrentTextLength = 0 ; }
target:  Tell the component to commit all of the characters in the string to the current text view. This effectively wipes out any text in progress.