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

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

XMLWordPrintable

    • b94
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: