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

Icon of the child dialog is not updated on-the-fly when parent's icon changes, XToolkit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • client-libs
    • b85
    • sparc
    • solaris_10
    • Verified

      Normally Dialogs inherit the icon from the parent window. I have a frame and a Dialog and Frame is the parent of the dialog. I have set the frame's icon to 'image1'. I am making the frame visible. On clicking a button, the frame, I am opening the dialog. Dialog also shows the same icon.

      Now on clicking a button on the dialog, I am changing the icon of the parent frame. But it is not reflected on the dialog on SolSparc10-JDS whereas it is reflected properly on Win32. I reproduced it with Mustang-b80. This is reproducible on Motif as well.

      On XToolkit, I need to dispose the current dialog and create a new one in order to get the new icon (even hiding and showing the dialog also doesn't help).

      I have attached a sample test. Execute the sample test. Click on the button in the frame. A dialog comes up. Check whether dialog uses the same icon as the frame. Click the button on the dialog. Check whether Frame's icon changes to a new one. Check whether the dialog's icon changes. If it does not, the bug is reproduced.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: