classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Patch: MetalIconFactory and MetalTextFieldUI function i


From: Roman Kennke
Subject: Re: [cp-patches] Patch: MetalIconFactory and MetalTextFieldUI function implementations
Date: Wed, 23 Nov 2005 11:43:56 +0100

Hi Lillian,

Am Dienstag, den 22.11.2005, 15:15 -0500 schrieb Lillian Angel:
> Added implementations for missing functions in MetalIconFactory and
> MetalTextFieldUI.
> 
> 2005-11-22  Lillian Angel  <address@hidden>
> 
>         * javax/swing/plaf/metal/MetalIconFactory.java
>         (getMenuArrowIcon): Implemented.
>         (getMenuItemArrowIcon): Implemented to call getMenuArrowIcon,
>         because both icons look the same.

Would be useful to figure out if this really should return the same icon
class. They may look the same in some scenarious, but differ in
others...

>         (getMenuItemCheckIcon): Implemented.
>         * javax/swing/plaf/metal/MetalTextFieldUI.java
>         (propertyChange): Implemented to call super only, because it
>         is a hook method. It doesn't have a different purpose from
>         BasicLookAndFeel, other than allowing a subclass to override it.

I disagree. If the hook is provided in the BasicLookAndFeel and it's
specified to be overridden in MetalTextFieldUI, then there must be some
functionality there. Only calling super.propertyChange() doesn't change
anything (except some additional useless calls) from not implementing
this class at all in MetalTextFieldUI. I would guess that there actually
_should_ be some functionality in this method. Would be good to figure
out.

/Roman

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]