I’ve found several pages and SO answers about the enter-as-tab problem in Java, but all propose either overriding methods of JTextField or adding a key listener to every component.
But isn’t there any other way? Can’t I override something of the LookAndFeel or install some global policy?
After some documentation crawling I found a solution: It is possible to set the focus traversal keys on
KeyboardFocusManagerinstead of aJComponentinstance.This adds the
enterkey to the list of keys which are used for forward traversal. (Backward traversal similar)