/[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.15 by trebligd, Fri Jul 8 15:24:08 2005 UTC revision 1.16 by langel, Fri Aug 5 12:28:04 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.15  
changed lines
  Added in v.1.16

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