This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 70
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?
How to generate autonumber in textbox
conversion from Date ojbect to Date object
convert text object to date where date-format is dynamic