JDK-6436437 : JFrame.setIconImages() doesn't select optimal icon size when client-decorated
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-06-08
  • Updated: 2010-04-03
  • Resolved: 2006-08-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b94Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
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.

Comments
EVALUATION Bug in new functionality - should fix.
13-06-2006