Article View: borland.public.jbuilder.java.swing
Article #10421please HELP - How can I catch exceptions from the Swing Event Queue Thread?
From: Bill Darbie
Date: Sat, 25 Sep 1999 00:00
Date: Sat, 25 Sep 1999 00:00
18 lines
1298 bytes
1298 bytes
I would like to be able to catch any exception that occurrs in my code with an exception handler. I have put try catch blocks around my main method and around the run method of any threads that I start. I need to put try catch around the run methods since Exceptions do not propogate out of one thread into the one that spawned it. The problem I am having is that I cannot catch exceptions that are generated from the Swing Event Queue since I have no clue where that thread is started. Does anyone know where the Swing thread run method is at. I am hoping I can override it somehow to get a try catch block in. Any better ideas of how to do this. I really want to have a global Exception handler in my app. Thanks, Bill Darbie
Technical Details
Message-ID:
<7sjp0d$4f510@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cace27c5ffb12581,start X-Google-Attributes: gid111d45,public From: "Bill Darbie" <noSpam@noSpam.com> Subject: please HELP - How can I catch exceptions from the Swing Event Queue Thread? Date: 1999/09/25 Message-ID: <7sjp0d$4f510@forums.borland.com> X-Deja-AN: 529572630 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing