2005-08-04  Lillian Angel  <[EMAIL PROTECTED]>

        * 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
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to