/[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.11 by mkoch, Fri Oct 8 21:41:41 2004 UTC revision 1.12 by rabbit78, Tue Apr 19 07:59:02 2005 UTC
# Line 595  public class BasicGraphicsUtils Line 595  public class BasicGraphicsUtils
595      Rectangle iconRect = new Rectangle();      Rectangle iconRect = new Rectangle();
596      Rectangle textRect = new Rectangle();      Rectangle textRect = new Rectangle();
597      Insets insets = b.getInsets();      Insets insets = b.getInsets();
     Insets margin = b.getMargin();  
598            
599      viewRect = new Rectangle();      viewRect = new Rectangle();
600    
# Line 628  public class BasicGraphicsUtils Line 627  public class BasicGraphicsUtils
627    
628      contentRect = textRect.union(iconRect);      contentRect = textRect.union(iconRect);
629    
630      return new Dimension(insets.left + margin.left      return new Dimension(insets.left
631                           + contentRect.width                           + contentRect.width
632                           + insets.right + margin.right,                           + insets.right,
633                           insets.top + margin.top                           insets.top
634                           + contentRect.height                           + contentRect.height
635                           + insets.bottom + margin.bottom);                           + insets.bottom);
636    }    }
637  }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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