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;
}

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 ; }
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 .
