equal
deleted
inserted
replaced
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); |