关于多线程过程中进行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 socket传输在vista/windows7下的问题 问个 字符串 检索的问题 tools.jar和dt.jar的问题 求一字符串中包含某字符串的方法 我写了一个小程序,为什么运行的结果跟Debug出来的结果不一样啊? 求解!! 求GridBagLayout 的字段和方法的使用,很急 请高手帮帮忙啊! 我对内存问题有点迷惑,在JAVA中! 读文件问题? 请教各种Java的区别 什么样的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.