>>>>> "Ravi" == Ravi Prakash <[EMAIL PROTECTED]> writes:
  Ravi> Hi,

  Ravi> Does any one know how to validate the date in a JTextfield - like they
  Ravi> should enter the numericals as well correct date.
  Ravi> and same applies to time also int Jtextfield.

I wrote a component which takes a slightly different approach.  It's
called "DateTimeEditor".  Instead of directly entering a date/time
value, the user can manipulate an existing date/time value by using
the up/down arrow keys and spinner buttons.  It is also fully
internationalized, just using the locale information in the JDK.

You can see this component in a section of the book titled "Swing", by
Matthew Robinson and Pavel Vorobiev, from Manning Publications.  If
you aren't able to purchase the book, you can see the online version
at <http://manning.spindoczine.com/sbe/>.  My component is in chapter
19, "Inside Text Components".  The component and demonstration
application is directly downloadable from that page.

-- 
===================================================================
David M. Karr     ; w:(425)487-8312     ; TCSI & Best Consulting
[EMAIL PROTECTED]    ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)

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

Reply via email to