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

Need mechanism for displaying platform-sized miniaturized icons

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • 7
    • unknown, 1.1.8
    • client-libs
    • None
    • x86, sparc
    • solaris_2.5.1, windows_nt

      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.

            vbaranovsunw Vyacheslav Baranov (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: