JDK-6270632 : PIT: Windows once minimized could not be restored to normal, Win32
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-05-15
  • Updated: 2011-01-19
  • Resolved: 2005-05-21
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.
JDK 6
6 b38Fixed
Related Reports
Relates :  
Relates :  
Description
I am showing 3 frames and a modal dialog on the screen. One of the frames is the parent of the dialog. Dialog's modality is set to default modality. When all are shown on the screen, all the frames are blocked by the dialog. I am clicking the 'SHOW DESKTOP' icon on the windows taskbar and all the windows get minimized to the taskbar. After this, there is no way I could restore java windows to normal state. I tried clicking the icons on the taskbar, I tried ALT+TABing but nothing worked out. 

I had to kill the java app and restart again. This is noticed only on Win32 with the following PIT build:
java version "1.6.0-awt.pit-int-jcg-win-03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-jcg-win-03-java2d_06_may_2005_09_06-b00)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode)

This is not reproduible on Mustang-b35.
I have attached a sample test. Execute the sample test on WinXP. You would see 3 frames and a dialog. Click on 'Show Desktop' icon. All the windows will be minimized. Try restoring the java windows through ALT+TAB, clicking on the taskbar icon. The frames will not be restored.
###@###.### 2005-05-15 16:26:06 GMT

This is seen very widely. I was running some swing app and opened a JFileChooser. When clicking 'Show desktop', everything gets minimized. After that, I am not able to restore the application. I had to kill the app and restart again. For reproducing it, simply run SwingSet2 demo. Go to JFileChooser demo and open a file chooser. Click 'Show Desktop'. After that, you will not be able to restore the application to normal. This is true with any application having a modal dialog shown on the screen. This is a very common user scenario and hence must work fine.
###@###.### 2005-05-17 19:15:55 GMT

Comments
EVALUATION On windows platform, all the blocked windows are not allowed to be activated, get focus, etc. All these checks are performed in a special installed hook. In the hook we check if a window is blocked, and if it is, suppress activation, focus, etc, and make its modal blocker dialog a foreground window. The problem here is that if this modal blocker dialog is minimized, making it a foreground window doesn't restore it. So we should add some lines to the hook to restore the blocker. ###@###.### 2005-05-19 13:20:57 GMT
19-05-2005