jdk/src/share/classes/sun/awt/im/InputMethodManager.java
changeset 4264 40c232605c68
parent 1276 5c7b6c8a2378
child 5506 202f599c92aa
equal deleted inserted replaced
4263:db2d1f69a60e 4264:40c232605c68
   356                                     true);
   356                                     true);
   357 
   357 
   358         AppContext requesterAppContext = SunToolkit.targetToAppContext(requester);
   358         AppContext requesterAppContext = SunToolkit.targetToAppContext(requester);
   359         synchronized (lock) {
   359         synchronized (lock) {
   360             SunToolkit.postEvent(requesterAppContext, event);
   360             SunToolkit.postEvent(requesterAppContext, event);
   361             lock.wait();
   361             while (!event.isDispatched()) {
       
   362                 lock.wait();
       
   363             }
   362         }
   364         }
   363 
   365 
   364         Throwable eventThrowable = event.getThrowable();
   366         Throwable eventThrowable = event.getThrowable();
   365         if (eventThrowable != null) {
   367         if (eventThrowable != null) {
   366             throw new InvocationTargetException(eventThrowable);
   368             throw new InvocationTargetException(eventThrowable);