I am working with a dialogue box containing text fields. I need to add logic so that if a certain character is entered, the focus progresses to the next field. I'm using KeyboardFocusManager.focusNextComponent() and that works fine.
I also need to add logic so that if another character is entered, the focus returns to the first field. I can't find a method in KeyboardFocusManager to do that, and I also can't find any documentation that addresses this problem.