这句话是什么意思 [英] what does this statement mean

查看:123
本文介绍了这句话是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与SwingUtilities.invokeAndWait()不同,允许事件线程调用SwingUtilities.invokeLater()。我无法理解这一点。

unlike SwingUtilities.invokeAndWait(), the event thread is permitted to call SwingUtilities.invokeLater(). I cannot understand this clearly.

请帮助我。

推荐答案

另一个线程(不是主Swing事件线程)可以调用 invokeAndWait 来等待Swing事件线程准备好运行某些操作。但是,Swing事件线程不能等待自己。因此,它调用 invokeLater 将操作放入队列中以便以后执行。

Another thread (not the main Swing event thread) can call invokeAndWait to wait for the Swing event thread to be ready to run some action. However, the Swing event thread cannot wait for itself. So it calls invokeLater to put the action in a queue for later execution.

这篇关于这句话是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆