< prev index next >

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

Print this page

        

*** 120,136 **** * Orientation relative values are interpreted relative to the container's * {@code ComponentOrientation} property while absolute values * are not. Baseline relative values are calculated relative to the * baseline. Valid values are: * ! * <center><table BORDER=0 style="width:800" ! * SUMMARY="absolute, relative and baseline values as described above"> * <tr> ! * <th><P style="text-align:left">Absolute Values</th> ! * <th><P style="text-align:left">Orientation Relative Values</th> ! * <th><P style="text-align:left">Baseline Relative Values</th> * </tr> * <tr> * <td> * <ul style="list-style-type:none"> * <li>{@code GridBagConstraints.NORTH}</li> * <li>{@code GridBagConstraints.SOUTH}</li> --- 120,139 ---- * Orientation relative values are interpreted relative to the container's * {@code ComponentOrientation} property while absolute values * are not. Baseline relative values are calculated relative to the * baseline. Valid values are: * ! * <table class="striped" style="margin: 0px auto"> ! * <caption>Absolute, relative and baseline values as described above</caption> ! * <thead> * <tr> ! * <th><p style="text-align:center">Absolute Values</th> ! * <th><p style="text-align:center">Orientation Relative Values</th> ! * <th><p style="text-align:center">Baseline Relative Values</th> * </tr> + * </thead> + * <tbody> * <tr> * <td> * <ul style="list-style-type:none"> * <li>{@code GridBagConstraints.NORTH}</li> * <li>{@code GridBagConstraints.SOUTH}</li>
*** 167,177 **** * <li>{@code GridBagConstraints.BELOW_BASELINE_LEADING}</li> * <li>{@code GridBagConstraints.BELOW_BASELINE_TRAILING}</li> * </ul> * </td> * </tr> ! * </table></center> * <dt>{@link GridBagConstraints#weightx}, * {@link GridBagConstraints#weighty} * <dd>Used to determine how to distribute space, which is * important for specifying resizing behavior. * Unless you specify a weight for at least one component --- 170,181 ---- * <li>{@code GridBagConstraints.BELOW_BASELINE_LEADING}</li> * <li>{@code GridBagConstraints.BELOW_BASELINE_TRAILING}</li> * </ul> * </td> * </tr> ! * </tbody> ! * </table> * <dt>{@link GridBagConstraints#weightx}, * {@link GridBagConstraints#weighty} * <dd>Used to determine how to distribute space, which is * important for specifying resizing behavior. * Unless you specify a weight for at least one component
*** 195,211 **** * is {@code CONSTANT_DESCENT}). The row that the component is * aligned to is called the <em>prevailing row</em>. * <p> * The following figure shows a baseline layout and includes a * component that spans rows: ! * <center><table summary="Baseline Layout"> * <tr style="text-align:center"> * <td> * <img src="doc-files/GridBagLayout-baseline.png" * alt="The following text describes this graphic (Figure 1)." style="float:center"> * </td> ! * </table></center> * This layout consists of three components: * <ul><li>A panel that starts in row 0 and ends in row 1. The panel * has a baseline-resize behavior of {@code CONSTANT_DESCENT} and has * an anchor of {@code BASELINE}. As the baseline-resize behavior * is {@code CONSTANT_DESCENT} the prevailing row for the panel is --- 199,216 ---- * is {@code CONSTANT_DESCENT}). The row that the component is * aligned to is called the <em>prevailing row</em>. * <p> * The following figure shows a baseline layout and includes a * component that spans rows: ! * <table class="borderless" style="margin: 0px auto"> ! * <caption>Baseline Layout</caption> * <tr style="text-align:center"> * <td> * <img src="doc-files/GridBagLayout-baseline.png" * alt="The following text describes this graphic (Figure 1)." style="float:center"> * </td> ! * </table> * This layout consists of three components: * <ul><li>A panel that starts in row 0 and ends in row 1. The panel * has a baseline-resize behavior of {@code CONSTANT_DESCENT} and has * an anchor of {@code BASELINE}. As the baseline-resize behavior * is {@code CONSTANT_DESCENT} the prevailing row for the panel is
*** 250,260 **** * The following figures show ten components (all buttons) * managed by a grid bag layout. Figure 2 shows the layout for a horizontal, * left-to-right container and Figure 3 shows the layout for a horizontal, * right-to-left container. * ! * <center><table style="width:600" summary="layout"> * <tr style="text-align:center"> * <td> * <img src="doc-files/GridBagLayout-1.gif" alt="The preceding text describes this graphic (Figure 1)." style="float:center; margin: 7px 10px;"> * </td> * <td> --- 255,266 ---- * The following figures show ten components (all buttons) * managed by a grid bag layout. Figure 2 shows the layout for a horizontal, * left-to-right container and Figure 3 shows the layout for a horizontal, * right-to-left container. * ! * <table class="borderless" style="margin: 0px auto"> ! * <caption style="width:600;display:none">Figures</caption> * <tr style="text-align:center"> * <td> * <img src="doc-files/GridBagLayout-1.gif" alt="The preceding text describes this graphic (Figure 1)." style="float:center; margin: 7px 10px;"> * </td> * <td>
*** 262,272 **** * </td> * <tr style="text-align:center"> * <td>Figure 2: Horizontal, Left-to-Right</td> * <td>Figure 3: Horizontal, Right-to-Left</td> * </tr> ! * </table></center> * <p> * Each of the ten components has the {@code fill} field * of its associated {@code GridBagConstraints} object * set to {@code GridBagConstraints.BOTH}. * In addition, the components have the following non-default constraints: --- 268,278 ---- * </td> * <tr style="text-align:center"> * <td>Figure 2: Horizontal, Left-to-Right</td> * <td>Figure 3: Horizontal, Right-to-Left</td> * </tr> ! * </table> * <p> * Each of the ten components has the {@code fill} field * of its associated {@code GridBagConstraints} object * set to {@code GridBagConstraints.BOTH}. * In addition, the components have the following non-default constraints:
< prev index next >