src/java.desktop/share/classes/java/awt/GridBagLayout.java

Print this page

        

*** 1094,1104 **** if(curY < 0) curY = 0; } /* Adjust the grid width and height ! * fix for 5005945: unneccessary loops removed */ px = curX + curWidth; if (layoutWidth < px) { layoutWidth = px; } --- 1094,1104 ---- if(curY < 0) curY = 0; } /* Adjust the grid width and height ! * fix for 5005945: unnecessary loops removed */ px = curX + curWidth; if (layoutWidth < px) { layoutWidth = px; }
*** 1356,1366 **** System.arraycopy(rowWeights, 0, r.weightY, 0, Math.min(r.weightY.length, rowWeights.length)); /* * Pass #3 * ! * Distribute the minimun widths and weights: */ nextSize = Integer.MAX_VALUE; for (i = 1; --- 1356,1366 ---- System.arraycopy(rowWeights, 0, r.weightY, 0, Math.min(r.weightY.length, rowWeights.length)); /* * Pass #3 * ! * Distribute the minimum widths and weights: */ nextSize = Integer.MAX_VALUE; for (i = 1;
*** 1576,1586 **** if (constraints.baselineResizeBehavior == Component. BaselineResizeBehavior.CENTER_OFFSET) { // Component has a baseline resize behavior of // CENTER_OFFSET, calculate centerPadding and // centerOffset (see the description of ! // CENTER_OFFSET in the enum for detais on this // algorithm). int nextBaseline = c.getBaseline(w, h + 1); constraints.centerOffset = baseline - h / 2; if (h % 2 == 0) { if (baseline != nextBaseline) { --- 1576,1586 ---- if (constraints.baselineResizeBehavior == Component. BaselineResizeBehavior.CENTER_OFFSET) { // Component has a baseline resize behavior of // CENTER_OFFSET, calculate centerPadding and // centerOffset (see the description of ! // CENTER_OFFSET in the enum for details on this // algorithm). int nextBaseline = c.getBaseline(w, h + 1); constraints.centerOffset = baseline - h / 2; if (h % 2 == 0) { if (baseline != nextBaseline) {