`

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
分享到:
评论

相关推荐

    How to do almost everything In active directory via C#

    When I was starting out with this technology I had a lot of growing pains so this is an attempt to help those programmers who may have a need to interact with the Directory but do not want to have to ...

    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...

    C in a Nutshell, Second Edition

    Whether you're learning French, Java, or C, at some point you'll set aside the tutorial and attempt to converse on your own. It's not necessary to know every subtle facet of French in order to speak ...

    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 ...

    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 ...

    Pro LINQ: Language Integrated Query in C# 2010 (含源码)

    Written with a sense of humor, this book will attempt to entertain you on your journey through the wonderland of LINQ and C# 2010. What you’ll learn How to leverage all the new LINQ relevant C# ...

    PyOpenGL-3.1.5-cp37-cp37m-win_amd64.whl

    解决:OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInit, check for bool(glutI 下载后,在该目录打开cmd,安装pip install PyOpenGL-3.1.5-cp37-cp37m-win_amd64.whl

    代数学新发明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 ...

    Sliding Modes in Control and Optimization

    The first attempt was made by the author in 1975-1976 in his course on "The Theory of Discontinuous Dynamic Systems" and "The Theory of Variable Structure Systems" read to post-graduates at the ...

    Dear teacher, this is an attempt to interpret some research findings

    Dear teacher, this is an attempt to interpret some research findings DEAR TEACHER, THIS IS AN ATTEMPT TO INTERPRET SOME RESEARCH FINDINGS KEITH A. MC NEIL AND BEEMAN N. PHILLIPS Southern ...

    Practical C++ Design_ from programming to architecture-Apress (2018)

    Throughout my career, I have mentored both students and fellow ... In this book, I instead attempt to ground the reader’s theoretical knowledge of design through practice using a single case study.

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

    Illegal attempt to use Text/Byte host variable. 解决方法: 使用GbsConnection的方法GetGbsBlob(), GetGbsClob(), 获得Blob,Clob对象。 将Blob,Clob对象作为参数值。就能够解决该问题。

    C-Sharp in Depth

    This book is my attempt to help you achieve that sort of understanding, or deepen it further. It won’t be enough on its own—it should be a companion to your coding, guiding you and suggesting some ...

    From Theory to Practice: An overview of MIMO

    MIMO wireless links, we highlight the di erent classes of techniques and algorithms proposed which attempt to realize the various bene ts of MIMO including spatial multiplexing and space-time coding ...

Global site tag (gtag.js) - Google Analytics