I'm trying to set up a situation with two components - a JSpinner & JTextField - where I can traverse between the two using the 'Tab' key and have the text of the JSpinner & JTextField automatically selected once they are tabbed into.
At the moment, I've come up with this:
It works when tabbing from the JSpinner into the JTextField, but not the other way around.
I'm obviously doing something wrong.
If there are any clues, they would be very much appreciated.