JDK-6438985 : Modal dialog don't goes to iconified state , when the parent is iconified.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-06-15
  • Updated: 2006-06-15
  • Resolved: 2006-06-15
Related Reports
Relates :  
Description
Modal dialog don't goes to iconified state , when the parent is iconified. 

Step to Reproduce:
-------------------
1) Run the attached program. You can see a frame on the screen & a TrayIcon is added to the Taskbar (systemtray) , an animated dog.
2) Right click on the TrayIcon. You can see popupmenu.
3) Select 'Iconify' menuitem. You can see that frame is iconified.
4) Repeat step (2).
5) Select 'Normal' menuitem. You can see that frame is restored to normal state.
6) Repeat step (2).
7) Select 'Dialog' menuitem. You can see a Modal dialog on the screen. Try clicking on the parent , the dialog flicker which indicates that the frame is blocked.
8) Repeat step (2).
9) Select 'Iconify' menuitem. Observe that Franme (Parent ) gets iconified, but Modal dialog does n't . If you see the same , then the bug is reproduced.

I tested this from Mustang b40 to Mustang b87.

Comments
EVALUATION The test attached to the bug report is not correct: public class SystemTrayAndPopup implements ActionListener { ... private Frame frame; private Dialog d = null; ... SystemTrayAndPopup() { ... d = new Dialog(frame, true); ... frame = new Frame("System Tray New Scenarion"); ... } ... } One can see that at the moment when dialog d is created, frame hasn't been initialized yet. It means that dialog is created with null parent, thus it is not iconified together with the frame. To correct the test the dialog should be created after the frame. After that dialog gets iconified together with the frame.
15-06-2006