/[classpath]/classpath/javax/swing/plaf/basic/BasicGraphicsUtils.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicGraphicsUtils.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9.2.4 by gnu_andrew, Tue Aug 2 20:12:38 2005 UTC revision 1.9.2.5 by gnu_andrew, Sun Aug 7 18:34:11 2005 UTC
# Line 609  public class BasicGraphicsUtils Line 609  public class BasicGraphicsUtils
609       * LineMetrics, not a FontMetrics argument. But fixing this that       * LineMetrics, not a FontMetrics argument. But fixing this that
610       * would change the public API.       * would change the public API.
611       */       */
612      SwingUtilities.layoutCompoundLabel(     SwingUtilities.layoutCompoundLabel(
613        b, // for the component orientation        b, // for the component orientation
614        b.getToolkit().getFontMetrics(b.getFont()), // see comment above        b.getToolkit().getFontMetrics(b.getFont()), // see comment above
615        b.getText(),        b.getText(),
# Line 630  public class BasicGraphicsUtils Line 630  public class BasicGraphicsUtils
630       */       */
631    
632      contentRect = textRect.union(iconRect);      contentRect = textRect.union(iconRect);
633        
634      return new Dimension(insets.left      return new Dimension(insets.left
635                           + contentRect.width                           + contentRect.width
636                           + insets.right,                           + insets.right + b.getHorizontalAlignment(),
637                           insets.top                           insets.top
638                           + contentRect.height                           + contentRect.height
639                           + insets.bottom);                           + insets.bottom);

Legend:
Removed from v.1.9.2.4  
changed lines
  Added in v.1.9.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26