void flushText(){
  String flush=(committedText != null ? committedText : "");
  if (composedText != null) {
    flush+=composedText.toString();
  }
  if (!flush.equals("")) {
    AttributedString attrstr=new AttributedString(flush);
    postInputMethodEvent(InputMethodEvent.INPUT_METHOD_TEXT_CHANGED,attrstr.getIterator(),flush.length(),null,null,EventQueue.getMostRecentEventTime());
    composedText=null;
    committedText=null;
  }
}

void flushText ( ) { String flush = ( committedText != null ? committedText : "" ) ; if ( composedText != null ) { flush += composedText . toString ( ) ; } if ( ! flush . equals ( "" ) ) { AttributedString attrstr = new AttributedString ( flush ) ; postInputMethodEvent ( InputMethodEvent . INPUT_METHOD_TEXT_CHANGED , attrstr . getIterator ( ) , flush . length ( ) , null , null , EventQueue . getMostRecentEventTime ( ) ) ; composedText = null ; committedText = null ; } }
flushes composed and committed text held in this context . this method is invoked in the awt toolkit ( x event loop ) thread context and thus inside the awt lock .
