摘要
介绍了Swing可视化组件,探讨了使用Swing组件开发界面时的线程问题,从原理上阐述Swing的线程机制,分析Swing的事件派发线程的处理过程,对Swing对耗时任务的多线程处理方法进行研究,结合实例给出解决策略,并说明了基于SwingWorker的操作。
This paper introduces the Swing GUI tool and elaborates the principle of thread when using Swing for developing in terface,analyzes the process of event dispatcher thread and multi-thread method by which Swing do the long time task with the example,and illustrates the operation of SwingWorker.
作者
胡家芬
HU Jia-fen(School of Electronic and Information Engineering,Ningbo University of Technology,Ningbo 315010,China)
出处
《电脑知识与技术》
2012年第11期7481-7482,共2页
Computer Knowledge and Technology