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
If I run it with 6u18, IE becomes active for short period of time, but remaining JDialog
will become active soon.
These are joint requests for CR 6954221 and CR 6968959.
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.