简体   繁体   中英

multiple swing worker for an application with various button

假设我有一个带有各种按钮的应用程序。每个按钮执行一个不同的任务。一个打开一个文件,另一个打印一些信息,依此类推。我必须实现一个不同的对象来扩展我的应用程序中出现的每个按钮的swingworker类?

If each action requires a background thread, then yes, I'd use a different SwingWorker for each one. No big deal though. What is the issue that you're having?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM