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

PIT: New icon is not refreshed properly on the title bar for LAF decorated JFrame - setIconImgs

    Details

    • Subcomponent:
    • Resolved In Build:
      b94
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      I have a JFrame with default look and feel decorations turned on. The frame is initially set with duke icon and icon is shown properly when the frame is shown. Now I am changing the icon of the frame on clicking a button. On clicking a button, I am reading a new image, adding it to the list and calling setIconImages(). I expect the newly passed image to be shown on the swing decorated title bar. But the icon is not changed until I resize the frame.

      The same process works fine when I call setIconImage() instead of setIconImages() inside the action listener of the button.

      This is noticed on WinXP and SolSparc10-JDS with b85 AWT PIT build. This is a bug in the new feature (setIconImages) and the existing API setIconImage works fine where the icon is shown immediately without a resize.

      I have attached a sample test. Execute the sample test. You would see a frame with 2 buttons. Click on the setIconImage button. You will notice that the icon on the title bar changes immediately. Click on setIconImages(). You will notice that the icon does not change on the title bar immediately. You will have to resize the frame a bit in order to see the new icon.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bchristi Brent Christian
                Reporter:
                pmohansunw Praveen Mohan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: