swing中报异常:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Attempt to mutate in notification
原因:在文本框的监听器DocumentListener 中修改该文本框内容
有问题的代码:
解决方法:
增加一个线程,在线程中修改文本框的内容:
参考:http://hw1287789687.iteye.com/blog/2233609
swing中报异常:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Attempt to mutate in notification
原因:在文本框的监听器DocumentListener 中修改该文本框内容
有问题的代码:
解决方法:
增加一个线程,在线程中修改文本框的内容:
参考:http://hw1287789687.iteye.com/blog/2233609