--- old/src/java.desktop/share/classes/java/awt/GridBagLayout.java 2019-06-11 18:02:11.000000000 -0700 +++ new/src/java.desktop/share/classes/java/awt/GridBagLayout.java 2019-06-11 18:02:11.000000000 -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,25 +116,14 @@ *
{@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

- *
    + *

    Absolute Values: + *

      *
    • {@code GridBagConstraints.NORTH}
    • *
    • {@code GridBagConstraints.SOUTH}
    • *
    • {@code GridBagConstraints.WEST}
    • @@ -145,9 +134,8 @@ *
    • {@code GridBagConstraints.SOUTHEAST}
    • *
    • {@code GridBagConstraints.CENTER} (the default)
    • *
    - *
- *
    + *

    Orientation Relative Values: + *

      *
    • {@code GridBagConstraints.PAGE_START}
    • *
    • {@code GridBagConstraints.PAGE_END}
    • *
    • {@code GridBagConstraints.LINE_START}
    • @@ -157,9 +145,8 @@ *
    • {@code GridBagConstraints.LAST_LINE_START}
    • *
    • {@code GridBagConstraints.LAST_LINE_END}
    • *
    - *
- *
    + *

    Baseline Relative Values: + *

      *
    • {@code GridBagConstraints.BASELINE}
    • *
    • {@code GridBagConstraints.BASELINE_LEADING}
    • *
    • {@code GridBagConstraints.BASELINE_TRAILING}
    • @@ -170,10 +157,6 @@ *
    • {@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 +184,11 @@ *

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

+ *

Baseline Layout + *

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

* This layout consists of three components: *