posted 20 years ago
Hi,
I have a JTable with cells backed by JTextFields:
Now I want the user to be able to enter text in the focused/selected
textfield simply by tabbing to that cell.
How can I cause editing to commence immediately when the user navigates
to a cell with the keyboard?
I have already tried several solutions:
- Calling requestFocus() on prev.getNext() (see above, second for-loop)
- Calling requestFocusInWindow() on prev.getNext() with the result that the requestFocusInWindow-method returns false
- Calling transferFocus() had no effect
- Calling DefaultKeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent() had no effect either.
Can anybody help me?
Stefan