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?