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

Need mechanism for displaying platform-sized miniaturized icons

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: unknown, 1.1.8
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      solaris_2.5.1, windows_nt

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: