Thanks Craig.
Well if I comment that
string out, I will allow to user incorrect input.
If there some classes or interfaces wich I can extend or implement to define the behavior of JFormattedTextField when the incorrect input was detected.
For example if user typed 15 on month position I'd like to return back the previous month immediatly (not after focus was lost).
And second question: if I will comment that string the "/" simbols may be deleted if user will type for example three digitson month position instead of two. How can I prevent this situation?
Thanks in advance