wood burning stoves 2.0*
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
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: 155
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