Article View: borland.public.jbuilder.java.swing
Article #8096Re: InputVerifier Dilemas
From: John McGrath TeamB
Date: Tue, 24 Oct 2000 00:00
Date: Tue, 24 Oct 2000 00:00
32 lines
1788 bytes
1788 bytes
On Mon, 23 Oct 2000 08:53:27 -0400, James Cook wrote:
> Have you (or anyone else!?) ever successfully used
> InputVerifier's on a project.
A while back, I converted some generic field classes that I had written
to use InputVerifiers. I had written these primarily as an exercise to
explore some Java features, so they are not extensively used and not well
tested.
Actually, there is one place one of them is used. I used the class in
the Cosmetics OpenTool, so I believe that are using it in your copy of
JBuilder. :o)
But because of how it is used (integer field with negative values not
allowed), it is not possible for the verifier to fail, so this is not a
good example.
When I tested them, I definitely covered the case where you switch to
another field and the case of hitting the cancel button (where the
InputVerifier should not be triggered). I also think I checked when
another button was being pressed, but I cannot swear to that.
I will test the code more extensively when I get a chance.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.145f04f33973ceeb989c74@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39eda692$1_2@dnews> <ubswhpbt3.fsf@sds.no> <39eee503$1_2@dnews> <MPG.1459bad4d9e0ffc989c53@forums.borland.com> <39f43260_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a228099bd5ee00b0 X-Google-Attributes: gid111d45,public From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Subject: Re: InputVerifier Dilemas Date: 2000/10/24 Message-ID: <MPG.145f04f33973ceeb989c74@forums.borland.com> X-Deja-AN: 685148689 References: <39eda692$1_2@dnews> <ubswhpbt3.fsf@sds.no> <39eee503$1_2@dnews> <MPG.1459bad4d9e0ffc989c53@forums.borland.com> <39f43260_1@dnews> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing