This is Defect is a regression introduce somewhere between b78 and b82.
Following are the steps to reproduce the defect
1. create a frame with setFocusableWindowState as false.
2. create a Dialog with a button.
3. add addWindowFocusListener to Dialog.
4. Iconify the frame then Dialog triggers "Focus lost" event.
5. Deiconify the frame.
Expected Result:
Dialog should trigger "Focus Gained" event.
Actual Result:
Dialog is Not triggering "Focus Gained" event.
This defect can be reproduced by running the attached test on windows xp.