java - how to register KeyStroke on JXDatePicker -
I need to move focus on another element when the user key is entered, then I can press the key on multiple elements To become registered successor in this way:
this.getInputMap (). Input (KeyStroke.getKeyStroke ('\ n'), "transferFokus"); This.getActionMap (). Input ("transferFokus", transferfukusa); Everything works fine except for my class, which extends to the JAXDATE picture, which I think is the key inside the consumption What can I do?
The whole thing is that people should be able to use the GUI interface because they have worked on the old DOS app, in which they press the form with the enter instead of the tab inside.
From Javadoc, it seems that JxDit Picture uses JFormattedTextField for real editing component for date string is. JXDatePicker.getEditor () returns a text field, so you should call getInputMap () and getActionMap () on the text field?
Comments
Post a Comment