JDK-6954221 : With multiple modal JDialogs, closing one make IE window active
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u17-crev
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2010-05-20
  • Updated: 2011-03-02
  • Resolved: 2010-08-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
5.0u17-crev b04Fixed 5.0u29Fixed
Related Reports
Relates :  
Description
Vista, IE7 + 1.5.0_17 

When multiple modal JDialogs are shown, closing one would make IE a active window.
JDialogs uses same Applet's embedded frame as owner/parent.  This behavior confuses
user.

If I run it with 6u18, IE becomes active for short period of time, but remaining JDialog 
will become active soon.

Comments
SUGGESTED FIX These are joint requests for CR 6954221 and CR 6968959. Webrev: http://jpsesvr.sfbay.sun.com:8080/ctetools/html/ViewDetail.jsp?index=3668 RTI: https://jetsvr.sfbay.sun.com:8443/BugApproval/ViewDetail.jsp?index=9965
12-08-2010

EVALUATION The fix introduces a concept of the active windows list which is used to find the window to be activated next (similarly to what is done in JDK 6). This list is a list of windows sorted by the time of activation: later a window is activated, greater its index is in the list. The list is stored as a property in sun.awt.AppContext and is kept up to date by the KeyboardFocusManager "activeWindow" and AppContext GUI_DISPOSED property change listeners. AwtDialog::ModalNextWindowToFront() uses this list to activate a proper window on closing of a modal dialog.
04-08-2010