Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5004646

Child window becomes invisible when parent dialog is hidden and shown

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vbaranovsunw Vyacheslav Baranov (Inactive)
                Reporter:
                pmohansunw Praveen Mohan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: