File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes leave maskformatter field null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "leave maskformatter field null" Watch "leave maskformatter field null" New topic

leave maskformatter field null

melisa sabur

Joined: Jun 28, 2012
Posts: 2
Hello everyone,
Firstly thank your for your attention. I have prepared a project which uses JFormattedTextField and MaskFormatter.
But the main problem is the maskformatter that I've used is for date. like ( / / )
However the user dont have to fill that date they remain empty but I couldnt able o wrıte the code of that. Thanks for your help

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
this would be one of the ways

I agree. Here's the link:
subject: leave maskformatter field null
jQuery in Action, 3rd edition