user2331020
user2331020

Reputation: 1

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?

Upvotes: 0

Views: 464

Answers (2)

Devolus
Devolus

Reputation: 22094

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.

Upvotes: 0

Tom Hawtin - tackline
Tom Hawtin - tackline

Reputation: 147164

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.

Upvotes: 2

Related Questions