Meaningless Drivel is fun!
The moose likes Swing / AWT / SWT and the fly likes Swing EDT and exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing EDT and exceptions" Watch "Swing EDT and exceptions" New topic
Author

Swing EDT and exceptions

Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
Hi, I have the following code:

The exception is thrown, and still, the EDT goes on (the frame is 'realised' so a thread for it is created, the application doesn't finish. It just lingers on as a process that has to be killed. How do you go about it? Is there any configuration option to say that any exception finishes the thread?

Raf
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Swing EDT and exceptions