关于多线程过程中进行swing操作: 如果MyDialog不是在Thread中new的话,当然可以响应事件,我试过了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 难道在线程中产生的Dialog不能响应事件? 先去看书学习去,书中说:The single-thread rule is as follows:Rule: Once a Swing component has been realized, all code that might affect or depend on the state of that component should be executed in the event-dispatching thread. 是的,使用SwingUtlity.invokelater就好了啦!各位 Java中声明一个类数组,如何搞之? 新手请教:写了一个小程序,如何生成exe文件,在其他电脑上也能执行的 导入包问题,回答者皆送分,谢谢 java的帮助很多,每次查找都需要登陆sun的网站,为什么sun不作成微软的msdn那样方便呢? 正则式的一个问题 江湖救急啊!菜鸟求救! 如何将日期Nov 8, 2005 11:33:15 AM 转换成2005-11-8 11:33:15 socket通信的问题,请帮帮忙!!!!!! 这是什么问题? System.in.read 的问题 什么样的java基础书比较好呢? actionform和数据库的困惑
The single-thread rule is as follows:
Rule: Once a Swing component has been realized, all code that might affect or depend on the state of that component should be executed in the event-dispatching thread.