United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7124376 [macosx] Modal dialog lost focus
JDK-7124376 : [macosx] Modal dialog lost focus

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2013-07-12
Project Name:
JDK
Resolved Date:
2012-07-13
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-319 submitted 2011/08/24 by Alexander Petrov
1)Create frame.
2)Create modal dialog.
3)Set frame toFront.
Result: the dialog has lost focus for a while.
Build: b204
Keywords: test-fail-macos
java/awt/Focus/ModalBlockedStealsFocusTest/ModalBlockedStealsFocusTest

                                    

Comments
EVALUATION

This bug is actually much larger in scope and quite visible to user. One can easily reproduce it by launching SwingSet2, choosing JOptionPane demo and then clicking "Show Message Dialog" button. Now, click on the "SwingSet2" window title bar and you'll see the window rapidly gaining and loosing focus. My understanding is that fixing this bug must be done on Cocoa level.
                                     
2012-03-07



Hardware and Software, Engineered to Work Together