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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 6
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b85
    • CPU:
      sparc
    • OS:
      solaris_10
    • Verification:
      Verified

      Description

      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.

        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: