Alexander, perhaps you should post this question to i18n-dev as well. Indeed, I think the only real life code using this might be some Java IM or similar tool.
Thanks, -yan On 07/27/2015 04:48 PM, Alexander Scherbatiy wrote:
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.