[jira] Commented: (CAY-890) CM Cosmetics: Use the Cayenne Icon.

From: Demetrios Kyriakis (JIRA) ("Demetrios)
Date: Thu Aug 21 2008 - 04:57:11 EDT

  • Next message: Andrus Adamchik: "Re: 3.0 M5?"

        [ https://issues.apache.org/cayenne/browse/CAY-890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064#action_13064 ]

    Demetrios Kyriakis commented on CAY-890:
    ----------------------------------------

    > I'm not actually sure what this task is. Something do to with Windows
    This is not a Windows specific issue, but a general UI specific one.
    All descendants of java.awt.Window (i.e. mostly JFrame and JDialog - and CM has more of them), have an Icon to be diplayed in various places (e.g. in the titile bar of each java.awt.Window, in the Task Manager, when the application is minimized, etc.). If nothing is defined, than Java it's putting it's "cafee cup" as icon, but this is ugly because all java applications will display this.
    A much better approach (and used by all serious Swing applications) is to use the own icon, and set somewhere in the application (e.g. in static main, or at init).
    java.awt.Window#setIconImage(java.awt.Image image)

    Starting with jdk1.6, there's a new method:
    java.awt.Window#setIconImages(java.utill.List<? extends Image> icons)
    that allows to set more icons with different sizes, so that depending on the purpose, Swing will use the right one.
    In the case of the first method, it is usual to use one with a higher resolution (e.g. a PNG with 64px), sice Swing will scale down, depending on the scope (the scale down is not always the best, but still OK, and the reason in jdk1.6 the second method was introduced).

    So this issue is a simple "good UI practice", and also very simple to implement.
    I hope this helps,

    Demetrios.

    > CM Cosmetics: Use the Cayenne Icon.
    > -----------------------------------
    >
    > Key: CAY-890
    > URL: https://issues.apache.org/cayenne/browse/CAY-890
    > Project: Cayenne
    > Issue Type: Improvement
    > Components: CayenneModeler GUI
    > Reporter: Thomas Bernhard
    > Assignee: Kevin Menard
    > Priority: Minor
    >
    > All Frames and Dialogs should use the Cayenne Icon, not the default java icon - branding is important :).
    > This should be so even for the generic distributions (not just the native ones).

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



    This archive was generated by hypermail 2.0.0 : Thu Aug 21 2008 - 04:58:10 EDT