Article View: borland.public.jbuilder.java.swing
Article #9041Re: JTextField.requestFocus
From: John P. McGrath
Date: Wed, 07 Jun 2000 00:00
Date: Wed, 07 Jun 2000 00:00
14 lines
979 bytes
979 bytes
On Tue, 06 Jun 2000 19:29:25 +0200, Manfred Wretschko wrote: > I want to validate the content of a field and want the focus > so remain inside it, as long as the contant is not valid. If using JDK 1.3 features is an option, take a look at the InputVerifier class. This does exactly what you want, and it will also properly handle a dialog "Cancel" button. You do not want to insist that the current field be valid when the user presses "Cancel". -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.13a78fd253475bd1989998@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<393D34F5.C64FECAE@chello.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e946685483406185 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: JTextField.requestFocus Date: 2000/06/07 Message-ID: <MPG.13a78fd253475bd1989998@forums.borland.com> X-Deja-AN: 632013961 References: <393D34F5.C64FECAE@chello.at> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing