So, once again I am pulling my hair out trying to figure this out. I have a budget GUI that enters expenses into a JTextField where it is compared against other values and calculated.
The point is though, I have an array of JTextFields which I can currently navigate via the tab shift/tab keys. However, I want to be able to also navigate the textFields in the array via the up/down arrow keys. Should I use keyListeners of KeyBindings and what is the difference?
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> Should I use keyListeners of KeyBindings...
neither,
include the down arrow key in the forward set of focusTraversal keys
include the up arrow key in the backward set of focusTraversal keys