CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Location
    usa
    Posts
    33

    how to validate a date on a jtextfield ?

    how do i validate a jtextfield which only allow dd/mm/yyyy in it.
    the length must be 10 and any other format will cause an error to pop out.

    any help is much appreciated.


    thanks

    http://members.xoom.com/lookads

  2. #2
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: how to validate a date on a jtextfield ?

    Well I have developed JDateTextField. U will find it at...
    http://codeguru.developer.com/java/swing

    Read the article. It doesn't validate using the format u specified, u can create '...Format'. If u want to restrict the keys then u can create '...Listener' for ur purpose.

    - UnicMan
    http://members.tripod.com/unicman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured