🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8165

Re: InputVerifier Dilemas

#8165
From: Tor Iver Wilhelmsen
Date: Thu, 19 Oct 2000 00:00
22 lines
1581 bytes
"James Cook" <jimcook.remove.for.spam@iname.com> writes:

> 1. They don't prevent me from clicking on a button, checkbox, or combobox.
> In fact, the behavior is pitiful. First the InputVerifier fires and I get
> notified of a validation problem in my textfield. Then the mouseclick on any
> of the other components gets fired. These components then respond to the
> mouseclick event! What's up with that? True to form, the focus does not
> shift from the textfield, but that is small consolation if you just
> submitted the data, or closed the dialog.

Have the effect of the button click "hang" on the completion of the
verification. You will have that problem for _all_ event-driven
systems: If you have inter-dependencies on events, you need to use
some sort of flags.

> 2. How does one assign an InputVerifier to an *non-editable* JComboBox? Now
> one may argue that there is not a need to make sure that a combobox
> selection needs to be verified, but there are circumstances where two or
> more combos need their selections to jive.

Why do you need to use that event? Why not evaluate on the
ChangeEvent?
Technical Details
Message-ID: <ubswhpbt3.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39eda692$1_2@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: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: InputVerifier Dilemas
Date: 2000/10/19
Message-ID: <ubswhpbt3.fsf@sds.no>
X-Deja-AN: 683202262
Sender: towi@SDSA1761
References: <39eda692$1_2@dnews>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing