`

swing Attempt to mutate in notification

阅读更多

swing中报异常:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Attempt to mutate in notification

 原因:在文本框的监听器DocumentListener 中修改该文本框内容

有问题的代码:

 

解决方法:

增加一个线程,在线程中修改文本框的内容:



 

参考:http://hw1287789687.iteye.com/blog/2233609

 

  • 大小: 551.4 KB
  • 大小: 55.6 KB
0
1
分享到:
评论

相关推荐

    An attempt to read, understand, and implement the AUTOSAR SWS Po

    An attempt to read, understand, and implement the AUTOSAR SWS Port Driver according to the specification in a demo full-layered AUTOSAR a…

    orcad15.7 破解方法

    orcad15.7 安装问题解决:An application has made an attempt to load the C runtime library incorrectly. Please ccontact the application"s support team for more information!

    pb双击打开错误方式的修复

    PB,全称PowerBuilder,是一种流行的面向对象的编程环境,主要用于开发企业级应用程序,特别是数据库应用。当你在尝试双击打开PB项目时遇到错误,这可能是由于多种原因引起的,包括注册表问题、软件版本不兼容、环境...

    DB2数据库跨平台备份与恢复

    SQL2570N 错误的全称是“An attempt to restore on target OS from a backup created on source OS failed due to the incompatibility of operating systems or an incorrect specification of the restore command...

    Thinking in Tkinter (2005).pdf

    In them, I don't attempt to catalog all of the types of widgets, attributes, and methods that are available in Tkinter. and I certainly don't try to provide a comprehensive introduction to Tkinter. I...

    A Practical Introduction to Computer Graphics Ian O. Angell (auth.) 1981

    After studying the contents and implementing the examples and exercises, the reader will be ready to attempt most tasks in graphics, whether these be the production of elementary data graphs, pie ...

    Exploiting_Freelist[0]_On_XPSP2

    attempt to prevent the use of overwritten heap headers to do arbitrary byte writing. This method of exploiting heap overflows, and the protection offered by service pack 2, is widely known and has ...

    Design Patterns in Modern C.pdf )

    At the same time, it’s also an attempt to flesh out any new patterns and approaches that could be useful to C++ developers. Finally, in some places, this book is quite simply a technology demo for ...

    Easy Mobile

    Easy Mobile is our attempt to create a many-in-one Unity package that greatly simplifies the implementation of de facto standard features of mobile games including advertising, in-app purchasing, game...

    Introduction.To.Algorithms,.Second.Edition

    We attempt to present each algorithm simply and directly without allowing the idiosyncrasies of a particular programming language to obscure its essence. To our colleagues We have supplied an ...

    BURNINTEST--硬件检测工具

    - Updated license management, in an attempt to remove a rare crash on startup. Release 5.3 build 1012.0002 WIN32 release 31 October 2007 - New build of Rebooter (64-bit Windows correction). - ...

    A Practical Guide to Designing with Data.pdf

    new ʻvisualizationsʼ are an attempt to explain the underlying information with a powerful visual impact. They take complex ideas and distil them into beautiful graphics revealing the ...

    Cylindrical Grinding - A Review on Surface Integrity

    This paper is an attempt to review some of the surface integrity issues in cylindrical grinding taken up and reported by number of researchers over the years. This review may have been planned to be ...

    Kafka 使用

    简介 Zookeeper搭建 bin/zkServer.sh start ... Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn) [2020-02-19 14:58:13,672] WARN Session 0x0 for serve

    代数学新发明Basic notions of algebra

    Although the author modestly describes his book as 'merely an attempt to talk about' algebra, he succeeds in writing an extremely original and highly informative essay on algebra and its place in ...

    How to be a Programmer

    In this essay I attempt to summarize as concisely as possible those things that I wish someone had explained to me when I was twenty-one. This is very subjective and, therefore, this essay is doomed...

    《人工智能》--基于uniapp开发的人工智能客服小程序.zip

    人工智能学习总结成果,希望可以帮到大家,有疑问欢迎随时沟通~ 人工智能学习总结成果,希望可以帮到大家,有疑问欢迎随时沟通~ 人工智能学习总结成果,希望可以帮到大家,有疑问欢迎随时沟通~ ...

    关于C#更新智能大对象更新时的问题及解决方法.doc

    在使用C#与南大通用数据库(GBase)交互时,遇到的一个常见问题是尝试更新Blob或Clob(大型对象)时出现错误:“Illegal attempt to use Text/Byte host variable”。这个问题通常发生在利用CSDK中的ADO.NET驱动进行...

Global site tag (gtag.js) - Google Analytics