hi Ravi,
Basically you are going to need to extend JTextField for your own
needs eg JDateField and code up the Document for that class to
accept the input you want.
A good example came from Claude Ducay from JDJ around 
September 1999 and the current issue of Java Pro has more input
validation code from him of interest
hope this helps-stan

----- Original Message ----- 
From: "Ravi Prakash" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 1:38 PM
Subject: validation of date and time in separate JtextFields


> Hi,
> 
> Does any one know how to validate the date in a JTextfield - like they
> should enter the numericals as well correct date.
> and same applies to time also int Jtextfield.
> 
> thx in advance
> ravi
> 
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to