diff -r 0aba35254e00 -r d32a3b1ca84a src/java.desktop/share/classes/java/awt/GridBagLayout.java --- a/src/java.desktop/share/classes/java/awt/GridBagLayout.java Fri Sep 13 17:35:12 2019 -0700 +++ b/src/java.desktop/share/classes/java/awt/GridBagLayout.java Mon Sep 09 12:23:22 2019 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -116,64 +116,49 @@ *
{@link GridBagConstraints#anchor} *
Specifies where the component should be positioned in its display area. * There are three kinds of possible values: absolute, orientation-relative, - * and baseline-relative + * and baseline-relative. * 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: * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Absolute, relative and baseline values as described above

Absolute Values

Orientation Relative Values

Baseline Relative Values

- *
    - *
  • {@code GridBagConstraints.NORTH}
  • - *
  • {@code GridBagConstraints.SOUTH}
  • - *
  • {@code GridBagConstraints.WEST}
  • - *
  • {@code GridBagConstraints.EAST}
  • - *
  • {@code GridBagConstraints.NORTHWEST}
  • - *
  • {@code GridBagConstraints.NORTHEAST}
  • - *
  • {@code GridBagConstraints.SOUTHWEST}
  • - *
  • {@code GridBagConstraints.SOUTHEAST}
  • - *
  • {@code GridBagConstraints.CENTER} (the default)
  • + *
      + *
    • Absolute Values: + *
        + *
      • {@code GridBagConstraints.NORTH} + *
      • {@code GridBagConstraints.SOUTH} + *
      • {@code GridBagConstraints.WEST} + *
      • {@code GridBagConstraints.EAST} + *
      • {@code GridBagConstraints.NORTHWEST} + *
      • {@code GridBagConstraints.NORTHEAST} + *
      • {@code GridBagConstraints.SOUTHWEST} + *
      • {@code GridBagConstraints.SOUTHEAST} + *
      • {@code GridBagConstraints.CENTER} (the default) + *
      + *
    • Orientation Relative Values: + *
        + *
      • {@code GridBagConstraints.PAGE_START} + *
      • {@code GridBagConstraints.PAGE_END} + *
      • {@code GridBagConstraints.LINE_START} + *
      • {@code GridBagConstraints.LINE_END} + *
      • {@code GridBagConstraints.FIRST_LINE_START} + *
      • {@code GridBagConstraints.FIRST_LINE_END} + *
      • {@code GridBagConstraints.LAST_LINE_START} + *
      • {@code GridBagConstraints.LAST_LINE_END} + *
      + *
    • Baseline Relative Values: + *
        + *
      • {@code GridBagConstraints.BASELINE} + *
      • {@code GridBagConstraints.BASELINE_LEADING} + *
      • {@code GridBagConstraints.BASELINE_TRAILING} + *
      • {@code GridBagConstraints.ABOVE_BASELINE} + *
      • {@code GridBagConstraints.ABOVE_BASELINE_LEADING} + *
      • {@code GridBagConstraints.ABOVE_BASELINE_TRAILING} + *
      • {@code GridBagConstraints.BELOW_BASELINE} + *
      • {@code GridBagConstraints.BELOW_BASELINE_LEADING} + *
      • {@code GridBagConstraints.BELOW_BASELINE_TRAILING} + *
      *
    - *
- *
    - *
  • {@code GridBagConstraints.PAGE_START}
  • - *
  • {@code GridBagConstraints.PAGE_END}
  • - *
  • {@code GridBagConstraints.LINE_START}
  • - *
  • {@code GridBagConstraints.LINE_END}
  • - *
  • {@code GridBagConstraints.FIRST_LINE_START}
  • - *
  • {@code GridBagConstraints.FIRST_LINE_END}
  • - *
  • {@code GridBagConstraints.LAST_LINE_START}
  • - *
  • {@code GridBagConstraints.LAST_LINE_END}
  • - *
- *
- *
    - *
  • {@code GridBagConstraints.BASELINE}
  • - *
  • {@code GridBagConstraints.BASELINE_LEADING}
  • - *
  • {@code GridBagConstraints.BASELINE_TRAILING}
  • - *
  • {@code GridBagConstraints.ABOVE_BASELINE}
  • - *
  • {@code GridBagConstraints.ABOVE_BASELINE_LEADING}
  • - *
  • {@code GridBagConstraints.ABOVE_BASELINE_TRAILING}
  • - *
  • {@code GridBagConstraints.BELOW_BASELINE}
  • - *
  • {@code GridBagConstraints.BELOW_BASELINE_LEADING}
  • - *
  • {@code GridBagConstraints.BELOW_BASELINE_TRAILING}
  • - *
- *
*
{@link GridBagConstraints#weightx}, * {@link GridBagConstraints#weighty} *
Used to determine how to distribute space, which is @@ -201,14 +186,10 @@ *

* The following figure shows a baseline layout and includes a * component that spans rows: - * - * - * - * - *
Baseline Layout
- * The following text describes this graphic (Figure 1). - *
+ *

+ * The following text describes this graphic (Figure 1). + *

* This layout consists of three components: *