how would it be possible to create a text field where the caret will jump every 2 inserts of text between a character (i.e : or /)
just like inputting dates 2 digits between those character,
i really dont know what is that kind of text field is called, so supposedly my question might not that clear
i tried playing with the JTextField method .getDot() and .getMark() inside a Caretlistener interface, and setting the caret position into a designated index position if the mark or dot is met, but im messing up
1.) what is that field?, is there an appropriate term for that?
2.) using the caretlistener, textfield methods determining the position of the caret, would it be possible to do that kind of thing with JTextFields?
3.) this is my first time encountering the JFormattedTextField class, but i think its better to include the question, is it more possible with that JFormattedTextField than an ordinary JTextField to resolve the issue?