Article View: borland.public.jbuilder.java.swing
Article #11167Urgent: Problem with textfield validation on frame closing
From: Keith Cheng
Date: Sun, 04 Jul 1999 00:00
Date: Sun, 04 Jul 1999 00:00
24 lines
1454 bytes
1454 bytes
Hi,
I am now struggling on handling validation exception when the user
close the internal frame. Please give me a hand.
My situation is I have many internal frames using one genernal close
button on the toolbar which set the internal frames invisible upon
clicking. However, the textfields in some of the internal frames use
focus lost for validation (show Dialog message for validation
exception).
In that case, if the close button is clicked when the focus is on a
textfield having focus lost validation and the validtion exception
throws. The internal frame is hidden, but then the Dialog message shown
due to focus lost validation.
So, how to make the Dialog message show before the internal frame is
hidden.
Or, simply make the Dialog message never show when close button is
clicked.
Any suggestion or hint are appreciated.
Thanks,
Keith.....
Technical Details
Message-ID:
<377F7F99.11AC91DA@excel.com.hk>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,fef3bfb6cfc40573,start X-Google-Attributes: gid111d45,public From: Keith Cheng <Keith_Cheng@excel.com.hk> Subject: Urgent: Problem with textfield validation on frame closing Date: 1999/07/04 Message-ID: <377F7F99.11AC91DA@excel.com.hk> X-Deja-AN: 497070778 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