[英]java exception in thread “AWT-EventQueue-0”
I have recently installed JDK 1.6 update 43 on my machine .Since then, whenever I try to run the event handling programs, I encounter a problem, which says Exception in thread "AWT-EventQueue-0" 我最近在我的机器上安装了JDK 1.6更新43.从那时起,每当我尝试运行事件处理程序时,我遇到一个问题,它在线程“AWT-EventQueue-0”中表示异常
Which thread does it points to? 它指向哪个线程?
That's the AWT Event Dispatch Thread (EDT). 那是AWT事件调度线程(EDT)。 Code involving AWT or Swing should be run on that thread.
涉及AWT或Swing的代码应该在该线程上运行。 This is the thread you'll be on when in you
main
(running in the "main" thread) you typically call java.awt.EventQueue.invokeLater
. 这是您在
main
(在“主”线程中运行)时通常调用java.awt.EventQueue.invokeLater
线程。
Look at your stacktrace. 看看你的堆栈跟踪。 At some point you will find some entry which is from your own code.
在某些时候,您会找到一些来自您自己的代码的条目。 Maybe a null pointer exception or similar.
可能是空指针异常或类似。 This is where you must look at.
这是你必须要看的地方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.