Relates :
|
|
Relates :
|
The AWTKeyStroke.registerSubclass(Class) method was proposed when javax.swing.KeyStroke class was copied to java.awt.AWTKeystoke and it was necessary to create KeyStroke class which has private constructor. AWTKeyStroke class is intended to contain keyChar, keyCode, modifiers, and keyRelease flag and it seems there are no reasons that this class can be subclassed. The suggestion is to remove or deprecate the AWTKeyStroke.registerSubclass(Class) method.
|