简体   繁体   中英

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"

Which thread does it points to?

That's the AWT Event Dispatch Thread (EDT). Code involving AWT or Swing should be run on that thread. This is the thread you'll be on when in you main (running in the "main" thread) you typically call 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM