🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTextField validation

#11536
From: Jason Burton
Date: Wed, 19 May 1999 00:00
14 lines
1207 bytes
Gavin <g.cassidy@apion-tss.com> wrote in message
news:374294F8.8313952B@apion-tss.com...
> Looks like I missed the boat on this one, but why not create a textfield
where
> an invalid value CANNOT be entered?  Just write your own textfield
subclass and
> ensure any invalid keystrokes are ignored.

The original question dealt with validating minimum/maximum age.  While you
could easily make a text field that allows only numerical data, you would
still have to perform validation of the age when the user left the box.

Jason
Technical Details
Message-ID: <7hunul$et53@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7fg4uv$suv26@forums.borland.com> <MPG.1185a5346cbef1cf9896d7@forums.borland.com> <7fi16l$1kh12@forums.borland.com> <374294F8.8313952B@apion-tss.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,816558d5accb6dda
X-Google-Attributes: gid111d45,public
From: "Jason Burton" <Jason.Burton@McLeodSoftware.com>
Subject: Re: JTextField validation
Date: 1999/05/19
Message-ID: <7hunul$et53@forums.borland.com>
X-Deja-AN: 479672965
References: <7fg4uv$suv26@forums.borland.com> <MPG.1185a5346cbef1cf9896d7@forums.borland.com> <7fi16l$1kh12@forums.borland.com> <374294F8.8313952B@apion-tss.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing