I would like to enter in a JFormattedTextfield with a Maskformatter digits for inserting time units (min:sec with mask ##:##) from Right to the Left. I used SetComponentOrientation to get the work done. The only thing, when I type 3 digits (i.e. 1,2,3) successively the JFormattedTextfield will display 12:3 instead of 1:23. This problem was already subject in the following question, but wasn't answered satisfyingly: Swing - MaskFormatter - Enter Numbers from Right side of the textfield
I tried it already with my own subclass of a PlainDocument, but didn't really get further to the solution with the insert-method there. Has anybody an idea/suggestion how this can be done/fixed with a MaskFormatter or otherwise?
It would be great to get some hints and to hear from one or the other. Thanks in advance.
Here is a customized text field that uses a custom
DocumentFilterthat should help: