🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JTextField validation

#11689
From: David Gnemi
Date: Mon, 19 Apr 1999 00:00
8 lines
902 bytes
I am trying to validate JTextFields - min/max age, etc.  I would like to
check the input in the field and not let the user move out of the textField
until the input is valid.  I can do this when the return key is hit and
validate on the actionPerformed event, but when I try to validate on the
FocusLost event - and try to redirect the focus 'back' to the field the
focus gets screwed up.

Any help or directon to resources is appreciated
Technical Details
Message-ID: <7fg4uv$suv26@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,816558d5accb6dda,start
X-Google-Attributes: gid111d45,public
From: "David Gnemi" <david.gnemi@agencyworks.com>
Subject: JTextField validation
Date: 1999/04/19
Message-ID: <7fg4uv$suv26@forums.borland.com>
X-Deja-AN: 468445759
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing