Article View: borland.public.jbuilder.java.swing
Article #8655Frame's WINDOW_CLOSING event does not validate component with focus
From: Chris Vinson
Date: Thu, 27 Jul 2000 00:00
Date: Thu, 27 Jul 2000 00:00
8 lines
1114 bytes
1114 bytes
When the user clicks on the EXIT button at the top-right of an application's frame (the 'X' on a windows app) -or- when the user invokes the ALT-F4 keyboard accelerator, the frame receives a processWindowEvent() message where id=WINDOW_CLOSING without sending a focusLost() message to the component with keyboard input focus. I'd like to be able to send a focusLost() message to the GUI component that has focus before the processWindowEvent() gets fired to trigger the component's validation process. Does anyone know how to do this?
Technical Details
Message-ID:
<39809FD6.E5176805@appliedbiosystems.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,ffc0d847a062e938,start X-Google-Attributes: gid111d45,public From: Chris Vinson <nospamVinsonCL@pebio.com> Subject: Frame's WINDOW_CLOSING event does not validate component with focus Date: 2000/07/27 Message-ID: <39809FD6.E5176805@appliedbiosystems.com> X-Deja-AN: 651558378 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing