Uses of Class javax.swing.GroupLayout.Alignment (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
javax.swing.GroupLayout.Alignment

- Packages that use GroupLayout.Alignment
  Package | Description
  --- | ---
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

- - ### Uses of GroupLayout.Alignment in javax.swing

    Methods in javax.swing that return GroupLayout.Alignment
    Modifier and Type | Method and Description
    --- | ---
    `static GroupLayout.Alignment` | GroupLayout.Alignment.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static GroupLayout.Alignment[]` | GroupLayout.Alignment.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Methods in javax.swing with parameters of type GroupLayout.Alignment
    Modifier and Type | Method and Description
    --- | ---
    `GroupLayout.ParallelGroup` | GroupLayout.ParallelGroup.`addComponent(Component component, GroupLayout.Alignment alignment)` Adds a `Component` to this `ParallelGroup` with the specified alignment.
    `GroupLayout.ParallelGroup` | GroupLayout.ParallelGroup.`addComponent(Component component, GroupLayout.Alignment alignment, int min, int pref, int max)` Adds a `Component` to this `ParallelGroup` with the specified alignment and size.
    `GroupLayout.ParallelGroup` | GroupLayout.ParallelGroup.`addGroup(GroupLayout.Alignment alignment, GroupLayout.Group group)` Adds a `Group` to this `ParallelGroup` with the specified alignment.
    `GroupLayout.ParallelGroup` | GroupLayout.`createParallelGroup(GroupLayout.Alignment alignment)` Creates and returns a `ParallelGroup` with the specified alignment.
    `GroupLayout.ParallelGroup` | GroupLayout.`createParallelGroup(GroupLayout.Alignment alignment, boolean resizable)` Creates and returns a `ParallelGroup` with the specified alignment and resize behavior.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.