<AWT Dev>  Review request for CR 7124375: [macosx] Focus isn't transfered as expected between components
leonid.romanov at oracle.com
Fri Aug 17 10:59:38 PDT 2012
Please review a fix for CR 7124375: [macosx] Focus isn't transfered as expected between components.
The main issue addressed by this fix is that information about current focused window and focus owner isn't shared among LWKeyboardFocusManagerPeer instances. Also, while the current KeyboardFocusManager code makes it look like each KeyboardFocusManager instance needs its own peer instance, the reality is different because both WKeyboardFocusManagerPeer and XKeyboardManagerPeer doesn't have non static fields. In other words, all the WKeyboardFocusManagerPeer/XKeyboardManagerPeer fields are static. Therefore, there is no need in in multiple peer instances, one singleton peer shared among all the KeyboardFocusManager instances is enough. This fix addresses that issue as well by explicitly turning KeyboardManagerPeer implementations into singletons for the sake of cleaner code.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev