我希望能够多次使用 SwingWorker
子类。这可能吗?
我已经阅读了 java 文档:
SwingWorker
is only designed to be executed once. Executing aSwingWorker
more than once will not result in invoking thedoInBackground
method twice.
最佳答案
实现 SwingWorker 的类的一个实例确实只能运行一次。根据需要实例化并运行它们没有任何限制。
关于java - 多次执行SwingWorker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3854693/