You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2010/04/21 17:19:51 UTC

[jira] Updated: (PIVOT-477) Window and DesktopApplicationContext should support java.awt.Window.setIconImages() to display multi-resolution icons

     [ https://issues.apache.org/jira/browse/PIVOT-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown updated PIVOT-477:
-----------------------------

    Fix Version/s: 1.5.1

> Window and DesktopApplicationContext should support java.awt.Window.setIconImages() to display multi-resolution icons
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-477
>                 URL: https://issues.apache.org/jira/browse/PIVOT-477
>             Project: Pivot
>          Issue Type: Wish
>          Components: wtk
>            Reporter: Dirk Moebius
>            Priority: Minor
>             Fix For: 1.5.1
>
>
> DesktopApplicationContext currently sets the Window icon into the host frame using java.awt.Window.setIconImage(Image). However, since Java6 there's a new method called setIconImages(List<Image> icons) to set multi-resolution icons, e.g. you can set a 16x16 icon for the window title bar, a 48x48 icon to be shown in Microsoft Windows' task switcher, or a 64x64 icon to be shown in Windows Vista/7 Aero task list. (It is up to the runtime implementation to choose an appropriate icon from the list provided by setIconImages().)
> Without the possibility to set multi-resolution icons the OS scales the image either up or down to fit the current environment. This might lead to poor results.
> Suggestion: add a new method setIconImages(List<Image>) method to pivot.wtk.Window and, if set, use it in DesktopApplicationContext. Or maybe add setIconPictures(List<Picture>) to get around the issue of downcasting to Picture in updateFrameTitleBar().
> Thanks,
> Dirk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.