United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7129732 [macosx] JCK failure: no focus transfer back to Window owner
JDK-7129732 : [macosx] JCK failure: no focus transfer back to Window owner

Details
Type:
Bug
Submit Date:
2012-01-13
Status:
Closed
Updated Date:
2012-05-17
Project Name:
JDK
Resolved Date:
2012-04-04
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4 (b11)

Related Reports
Relates:
Relates:
Relates:

Sub Tasks

Description
Several JCK test cases fail on Mac for approximately such a reason: after an owned focused window become non-focused, the focus don't go back to the previously focused window, the owner.
I've concocted a small rude snippet reproducing that (attached). The JCK test in question could be started via jck4jdk as

java -jar $SOMEWHERE/JCK-runtime-8/lib/jtjck.jar -jck $SOMEWHERE/JCK-runtime-8 -jdk $JDK_TO_TEST api/java_awt/awt_focus_subsystem/focusable_windows/index.html#FocusableWindow3

(it may be jck7 as well).

                                    

Comments
EVALUATION

We should programmatically transfer focus to the owner when a focused owned window getting closed.
                                     
2012-01-30
SUGGESTED FIX

http://cr.openjdk.java.net/~ant/7129732/webrev.1
                                     
2012-02-01



Hardware and Software, Engineered to Work Together