/[classpath]/classpath/javax/swing/BoxLayout.java
ViewVC logotype

Diff of /classpath/javax/swing/BoxLayout.java

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

revision 1.6.2.3 by gnu_andrew, Thu Apr 28 23:00:13 2005 UTC revision 1.6.2.4 by gnu_andrew, Fri May 27 00:01:45 2005 UTC
# Line 477  public class BoxLayout implements Layout Line 477  public class BoxLayout implements Layout
477              Component comp = children[index];              Component comp = children[index];
478              Dimension sz = comp.getMaximumSize();              Dimension sz = comp.getMaximumSize();
479              x += sz.width;              x += sz.width;
480                // Check for overflow.
481                if (x < 0)
482                  x = Integer.MAX_VALUE;
483              y = Math.max(y, sz.height);              y = Math.max(y, sz.height);
484            }            }
485        }        }
# Line 489  public class BoxLayout implements Layout Line 492  public class BoxLayout implements Layout
492              Component comp = children[index];              Component comp = children[index];
493              Dimension sz = comp.getMaximumSize();              Dimension sz = comp.getMaximumSize();
494              y += sz.height;              y += sz.height;
495                // Check for overflow
496                if (y < 0)
497                  y = Integer.MAX_VALUE;
498              x = Math.max(x, sz.width);              x = Math.max(x, sz.width);
499            }            }
500        }        }

Legend:
Removed from v.1.6.2.3  
changed lines
  Added in v.1.6.2.4

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