classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] FYI: JMenu size


From: Lillian Angel
Subject: Re: [cp-patches] FYI: JMenu size
Date: Fri, 05 Aug 2005 08:26:42 -0400

I changed this patch since this one is slightly more intuitive.

2005-08-05  Lillian Angel  <address@hidden>

        * javax/swing/plaf/basic/BasicGraphicsUtils.java
        (getPreferredButtonSize): Added horizontalAdjustment to width
        to create gap at end of label text.
        * javax/swing/plaf/basic/BasicMenuItemUI.java
        (getPreferredSize): Removed "*2" since fix was moved to
        BasicGraphicsUtils


On Thu, 2005-08-04 at 15:46 -0400, Lillian Angel wrote:
> 2005-08-04  Lillian Angel  <address@hidden>
> 
>         * javax/swing/plaf/basic/BasicMenuItemUI.java
>         (getPreferredSize): Multiplied defaultTextIconGap by 2,
>         so there is equal space around the MenuItem
> 
> 
> I accidently committed my changes before making a patch, basically here
> is the code i changed:
> 
> Original-----
>   public Dimension getPreferredSize(JComponent c)
>   {
>     return getPreferredMenuItemSize(c, checkIcon, arrowIcon, 
>         defaultTextIconGap);
>   }
> 
> Modified------
>   public Dimension getPreferredSize(JComponent c)
>   {
>     return getPreferredMenuItemSize(c, checkIcon, arrowIcon, 
>         defaultTextIconGap*2);
>   }
> 
> 
> 
> _______________________________________________
> Classpath-patches mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/classpath-patches

Attachment: jm.diff
Description: Text Data


reply via email to

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