JDK-5004646 : Child window becomes invisible when parent dialog is hidden and shown
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2004-02-27
  • Updated: 2005-07-28
  • Resolved: 2005-07-28
Related Reports
Relates :  
Description
I am creating a frame, dialog and a window. Dialog is the child of Frame and window is a child of dialog. When you run the attached application, you would see all the three windows on the screen. Click the 'Show/Hide Dialog' button on the dialog or the window. This internally calls dialog.setVisible(false). Hence this makes the dialog as well as it's child window invisible. Now click on 'Show/Hide Dialog' button on the frame. This makes the dialog visible again. But the child window which was hidden before is hidden permanently and not shown again. So I have to call window.setVisible() explicitly if I want to make it visible. 

I feel this is not the correct behaviour. When a child is hidden automatically when the parent is hidden, it must be made visible automatically when the parent becomes visible. This is seen on all the platforms. I tested this with Tiger-beta2-b39 on Linux RH9, Mercury, Win XP and Solaris9 (CDE). 

Execute the attached sample test. Click on the 'Show/Hide Dialog' button on the window. This would make the dialog and window invisible. Click on the same button located in the frame, this would make only the dialog visible and not the child window.

Comments
EVALUATION Reproducible on 6.0b36, not reproducible on 6.0b40 and later. Most likely this bug was fixed by modality fix (4080029)
28-07-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
07-09-2004

EVALUATION Name: rpR10076 Date: 02/28/2004 We'll investigate this in dragonfly. ###@###.### ======================================================================
07-09-2004