Actually this defect was in SolSparc10-JDS and SuSE10 and it was working fine in windows
so this bug (6480534) is fixed in jdk7.0 b04
The fix is breaking same functionality in windows.
Reproduce the defect only in Window: I reproduced this defect in windows home edition
------------------------------------
Iconifying the frame programmatically by calling frame.setExtendedState(ICONIFIED) and then restoring it with a subsequent call to setExtendedState(NORMAL) removes the focus from the initial component on the frame. In my app, I have added a button to the frame and I am calling the above methods when the button is clicked. When the frame gets restored, the button no longer has the focus and window is also not activated.
I have attached a sample test. Run the test. A frame would appear with a button. Click on the button and wait for sometime. Frame would iconify and restore. When the frame comes back, check if button has the focus. If not, the bug is reproduced.