[2357] in java-interest

home help back first fref pref prev next nref lref last post

Re: TextField Validation

daemon@ATHENA.MIT.EDU (Herb Jellinek)
Fri Sep 29 18:39:42 1995

Date: Fri, 29 Sep 1995 13:21:39 -0700
From: jellinek@frstprsn.Eng.Sun.COM (Herb Jellinek)
To: java-interest@java.Eng.Sun.COM
Cc: java@java.Eng.Sun.COM


   To: java-interest@java.Eng.Sun.COM
   Subject: TextField Validation

   I didn't get a response last time so I'll try it one more time. I'm having a 
   problem with TextField Validation

   1. Is it possible to do validation of a character as it is typed in a Text 
   Field? I couldn't find a validation method and was wondering if I had to roll my 
   own Text Field similar to to the Spreadsheet example.

   2. If there is a validation method how do you know where the cursor is currently 
   positioned and how do you signal rejection/acceptance of a character?

   Binky

Hi Binky,
	It's not currently possible to do validation as characters are
typed.  However, this is a recognized hole in the TextComponent API
and is on the list of things to be fixed.

		Herb
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post