<AWT Dev> <Awt Dev> [9] Review Request for 8139218: Dialog that opens and closes quickly changes focus in original focusowner

Semyon Sadetsky semyon.sadetsky at oracle.com
Tue Dec 22 10:20:27 UTC 2015


Hello,

Please review fix for JDK9:

bug: https://bugs.openjdk.java.net/browse/JDK-8139218
webrev: http://cr.openjdk.java.net/~ssadetsky/8139218/webrev.00/

The root cause: when window gain focus come for window that is hidden 
already focus rollback to another window cannot be done synchronously. 
So number of consequent attempts to set focus to the previous component 
are usually failed and the focus target is shifted to the next in the 
focus traversal cycle.
Solution: try to wait a small time until the parent HW component gain 
the asynchronous focus from native platform.

--Semyon


More information about the awt-dev mailing list