SecondaryLoop instead of SwingWorker?

≡放荡痞女 提交于 2019-12-04 13:27:52

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/10196809/secondaryloop-instead-of-swingworker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!