JDK-4088703 : Need mechanism for displaying platform-sized miniaturized icons
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: unknown,1.1.8
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1,windows_nt
  • CPU: x86,sparc
  • Submitted: 1997-10-24
  • Updated: 2006-04-03
  • Resolved: 2006-04-03
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 7
7Resolved
Related Reports
Duplicate :  
Duplicate :  
Description
It would be nice to have some kinf of mechanism for setting Frame.setIconImage() that allowed you to specify the name of a set of icons of different sizes such that the one closest to the miniaturized size for that platform is used.

For example, if I have two versions of a miniaturized icon - 48X48 and 16X16, and they have special names in the file system or system properties (i.e. <icon_name>_16.gif and <icon_name_48.gif> and I call:
setIconImage(getPlatformIcon("<icon_name>"))
then on Windows, the <icon_name>_16.gif is used, on Solaris <icon_name>_48.gif is used. If it's called on a platform with 32x32 icons, it chooses the best one.
(This example is only to give an idea - the mechanism I described is pretty ugly - it might be better to have an idea of an icon set).

A much simpler solution would be to at least be able to get the size of miniaturized icons for the platform you are running on.

Comments
EVALUATION defer to Tiger.
17-09-2004