Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近学习Android,android中有一个Handler类,非常好用。我们可以将可运行对象“发布”到另一个线程的末尾,比如队列,在这种情况下它是非常动态的。任何人都知道 Java SE 中有任何类似的类能够做到这一点吗?
JavaSwing有SwingUtilities.invokeLater()一个 Runnable 作为参数。这是在 UI Thead 上发布内容的一种方式
JavaSwing
SwingUtilities.invokeLater()