my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes textfeild user can only enter formatted date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "textfeild user can only enter formatted date" Watch "textfeild user can only enter formatted date" New topic
Author

textfeild user can only enter formatted date

sureshksks ks
Greenhorn

Joined: Nov 16, 2012
Posts: 6
i am beginner in java netbeans.
i want to user to enter date in particular format.
that means in textfeild user sees __/__/____ only for a date in (for example) 15/11/2012 format and the programme receives only in that date format
what shall i do with the textfeild to display the format and receive in that particular frmat
i am using netbeans ide
please help
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> that means in textfeild user sees __/__/____

JFormattedTextField with appropriate MaskFormatter
m Korbel
Ranch Hand

Joined: Jun 19, 2012
Posts: 154
use JSpinner with SpinnerDateModel instead of bothering JFormattedTextField & InputMask & InputVerifier
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: textfeild user can only enter formatted date
 
Similar Threads
Parsing a date and retaining the format
Warning: SomeClassName.java modified in the future. -- what's this error?
convert text object to date where date-format is dynamic
conversion from Date ojbect to Date object
How to generate autonumber in textbox