question: 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 ; } }
target:  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.