/**
* Sorts events to their priority and calls
* {@link #postEventImpl(AWTEvent, int)}.
*
* @param evt the event to post
*/
private synchronized final void postEventImpl(AWTEvent evt)
{
int priority = NORM_PRIORITY;
if (evt instanceof PaintEvent || evt instanceof LowPriorityEvent)
priority = LOW_PRIORITY;
// TODO: Maybe let Swing RepaintManager events also be processed with
// low priority.
if (evt instanceof NativeEventLoopRunningEvent)
{
nativeLoopRunning = ((NativeEventLoopRunningEvent) evt).isRunning();
notify();
return;
}
postEventImpl(evt, priority);
}
EventQueue.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:jvm-stm
作者:
评论列表
文章目录