void dispatchCommittedText(String str,long when){
  if (str == null)   return;
  if (composedText == null) {
    AttributedString attrstr=new AttributedString(str);
    postInputMethodEvent(InputMethodEvent.INPUT_METHOD_TEXT_CHANGED,attrstr.getIterator(),str.length(),null,null,when);
  }
 else {
    committedText=str;
  }
}

void dispatchCommittedText ( String str , long when ) { if ( str == null ) return ; if ( composedText == null ) { AttributedString attrstr = new AttributedString ( str ) ; postInputMethodEvent ( InputMethodEvent . INPUT_METHOD_TEXT_CHANGED , attrstr . getIterator ( ) , str . length ( ) , null , null , when ) ; } else { committedText = str ; } }
dispatches committed text from xim to the awt event queue . this method is invoked from the event handler in canvas . c in the awt toolkit thread context and thus inside the awt lock .
