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

JFrame.setIconImages() doesn't select optimal icon size when client-decorated

    Details

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

      Description

      The new Window.setIconImages() API states:
      "The icons list is scanned for the images of most appropriate dimensions from the beginning. If the list contains several images of the same size, the first will be used."

      If this is true, then when constructing two different lists containing identical images, each with a different size, but in different order, a Window should select the same icon from both lists. This is true of native-decorated JFrames, but not for client-decorated JFrames. The attached test case demonstrates this.

      This is a bug in functionality new in Mustang.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bchristi Brent Christian
                Reporter:
                bchristi Brent Christian
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: