Big problem with JFormattedTextField.
When I use a JFormattedTextField to receive on input just letters when the JFormattedTextField loses focus it just clear the field! Why that?
try{
MaskFormatter mask =new MaskFormatter("?");
mask.setValidCharacters("abcdefghijklmnopqrstuvxwyzABCDEFGHIJKLMNOPQRSTUVXWYZ");
nameText =new JFormattedTextField(mask);
}
catch(ParseException pe){
}
When the JTextFormattedTextField loses the focus it gets empty. Why?
And I have another important question: Besides letters, I need to receive empty spaces on my JFormattetTextField. How can I set this on setValidCharacters method?
Thanks!

