windowLostFocus & windowDeactivated events are not triggered when Frame.dispose() is called in build 89. This is regression from build 86 since these events are triggered.
java -version
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)
How to reproduce:
1. Compile the disposeTest.java program attached.
2. Run this using appletviewer disposeTest.java with build 89.
3. The following messages are displayed:
**** Window Activated ****
**** Window Gained Focus ****
**** Window Opened ****
******Disposing the frame ********
**** Window Closed ****
Assretion Fails: windowLostFocus Event is Not triggered
Assretion Fails: windowDeactivated Event is Not triggered
4. Run the same program (using appletviewer disposeTest.java) with build 86.
5. The following messages are displayed:
**** Window Opened ****
**** Window Activated ****
**** Window Gained Focus ****
******Disposing the frame ********
**** Window Closed ****
**** Window Lost Focus ****
**** Window De-Activated ****
Assretion Pass: Triggered windowLostFocus Event
Assretion Pass: Triggered windowDeactivated Event
Only window clsoed event is triggered in build 89. This happens on Win32 and solaris/sparc with build 89.