Hello,

The class KeyStroke has been added to the javax.swing package first and then copied to the java.awt.AWTKeyStroke. Most of KeyStroke class methods looks like registering KeyStroke class and call to the parent AWTKeyStroke method now. That is why the AWTKeyStroke.registerSubclass(Class<?> subclass) method was added.


It is just a question: does someone use AWTKeyStroke.registerSubclass(Class<?> subclass) in their own project? Does it brings new benefits comparing just to AWTKeyStroke and Keystroke classes usage?

Thanks,
Alexandr.

Reply via email to