wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Limiting the i/p for Date/time in a MaskedTextfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Limiting the i/p for Date/time in a MaskedTextfield" Watch "Limiting the i/p for Date/time in a MaskedTextfield" New topic
Author

Limiting the i/p for Date/time in a MaskedTextfield

Meghna ks
Ranch Hand

Joined: Mar 15, 2001
Posts: 122
Hi I have a Maskedtextfield formatted to accept the Date & time Data type. Now, I'm already having some Date and Time set in the Text Field. Suppose, the user wants to keyin some Date and Time, I need to bring up a Calender from which the user can select the Date and Time
OR
How do I format my Textfield to accept Date & Time :
Right now the format is yyyy/mm/dd => So, how do I restrict the user's i/p to yyyy => 9999 max, mm => 12 max, 1 min , dd => 31 max and 1 min
Right now the format is hh/mm/ss/ms => So, how do I restrict the user's i/p to hr => 1min, 12 max, mm => 1min, 60max, ss => 1min, 60 max, ms => 1min and 60max.
I'd greatly appreciate your help. I'm a beginner here and I'd really need the inputs from you guys.
Thanks
Meghna

Meghna ks
Ranch Hand

Joined: Mar 15, 2001
Posts: 122
Hi Guys
I'm still keeping my fingers crossed. Tried some stuff, but its not working yet.So, please fill me in with some inputs the moment you come up with something.
Thanks
Meghna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Limiting the i/p for Date/time in a MaskedTextfield
 
Similar Threads
Bringing up a calender
Limiting the i/p for Date/time in a MaskedTextfield
convert text object to date where date-format is dynamic
isValidDateTime
Code review required for converting dateformat