This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
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

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

It is sorta covered in the JavaRanch Style Guide.
subject: leave maskformatter field null