<AWT Dev> java.awt.AWTKeyStroke.registerSubclass(Class<?> subclass) method usage.

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Mon Jul 27 13:48:25 UTC 2015


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?


More information about the awt-dev mailing list