I need to shift focus to another element when the user presses the Enter key, so I managed to register a KeyStroke for most elements this way:
this.getInputMap( ).put( KeyStroke.getKeyStroke( '\n' ), "transferFokus" ); this.getActionMap( ).put( "transferFokus", transferFokusa );
everything works fine except for my class, which extends JXDatePicker, which I suppose consumes the input key inside. What can I do?
The thing is to make it easier for people to use the GUI, since they worked on an old DOS application in which they move inside the form using Enter instead of the TAB key.
source share