本文介绍了SecondaryLoop而不是SwingWorker?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
来自的文档,目前尚不清楚何时应该使用这个新功能而不是,一些有趣案例会很有用。
From the documentation for SecondaryLoop, it is not clear when you should use this new feature instead of a SwingWorker, a few examples of interesting cases would be useful.
推荐答案
SecondaryLoop的意图基本相同作为SwingWorker。但是,使用SecondaryLoop可以比将多个SwingWorkers链接在一起更少毛茸茸。
The intent of SecondaryLoop is basically the same as SwingWorker. However, using SecondaryLoop can be less hairy than chaining together multiple SwingWorkers.
看看获取详细说明&安培;例如。
Take a look at Hidden Java 7 Features – SecondaryLoop for a detailed explanation & example.
这篇关于SecondaryLoop而不是SwingWorker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!