This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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 | 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: 174
use JSpinner with SpinnerDateModel instead of bothering JFormattedTextField & InputMask & InputVerifier
 
Have you checked out Aspose?
 
subject: textfeild user can only enter formatted date
 
It's not a secret anymore!