I have a Swing (Windows NT, JDK1.3) application which creates lots of frames. All queries/updates are asynchronous (we do not block the event dispatch thread) and we use a glass pane to prevent user from interacting with the frame while request is pending. When a user fires a request (which can take a while), he/she switches to a different application to do some other work. If the query fails, it pops up a modal dialog box. Unfortunately since the user is using a different application, the dialog remains hidden. When the user comes back to the application, the application seems unresponsive because of the modal dialog box.
Question: Is there a mechanism I can use such that when the user clicks on any of the application's frame, I can detect this and bring the modal dialog box to the front. This works beautifully in Swing when you click on the modal dialog box's parent, but when you are working with over a dozen frames, finding the right parent can be difficult. I have tried various techniques, but to no avail 1. I used Toolkit.getDefaultToolkit().addAWTEventListener to see if any event gets fired 2. I created my own EventQueue, used the Toolkit.getDefaultToolkit().getSystemEventQueue().push to push in to the top of the event queue, and overrode all public/protected methods to see if any events gets fired, but to no avail. 3. I have looked at various references and tips (http://www.javaworld.com/javatips/jw-javatip89_p.html,http://www.javaspecia lists.co.za/archive/Issue019.html), but I am hoping to find some ways to do this without having to changing all the applications (this is a large application with over 50 complex screens) Thanks in advance Erwin Jean-Louis _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing
