I want to implement autoskip with JTextField, but don't know how best to do this.
What is autoskip / auto-tabbing? When you reach the limit of a certain length of the text field, you will automatically move to the next field. (e.g. pressing Tab, focus of the next component) Or what name do you use for this behavior?
I tried this:
JTextField.getDocument.addChangeListener(): Compare the length and position of the carriage. seems convenient, but I cannot distinguish user input from calls JTextField.setText(String).
Focus should not change when changing text with gui-refresh.
What do you think is the best way to implement this?
Synox source
share