How to use setCaretPosition in JFormattedTextField?

1

I'm having trouble setting the cursor at the beginning of the field, using the setCaretPosition (0); in the TextField fields, it works correctly, however, in any field with masks (of type JFormattedTextField ), it does not work.

Can anyone tell me why?

    
asked by anonymous 07.11.2016 / 13:31

0 answers