| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BorderLayoutA border layout lays out a container, arranging and resizing
 its components to fit in five regions:
 north, south, east, west, and center. | |
| class  | CardLayoutA  CardLayoutobject is a layout manager for a
 container. | |
| class  | GridBagLayoutThe  GridBagLayoutclass is a flexible layout
 manager that aligns components vertically, horizontally or along their
 baseline without requiring that the components be of the same size. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BoxLayoutA layout manager that allows multiple components to be laid out either
 vertically or horizontally. | |
| class  | GroupLayoutGroupLayoutis aLayoutManagerthat hierarchically
 groups components in order to position them in aContainer. | |
| protected class  | JRootPane.RootLayoutA custom layout manager that is responsible for the layout of
 layeredPane, glassPane, and menuBar. | |
| class  | OverlayLayoutA layout manager to arrange components over the top
 of each other. | |
| class  | SpringLayoutA  SpringLayoutlays out the children of its associated container
 according to a set of constraints. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BasicSplitPaneUI.BasicHorizontalLayoutManagerLayoutManager for JSplitPanes that have an orientation of
 HORIZONTAL_SPLIT. | |
| class  | BasicSplitPaneUI.BasicVerticalLayoutManagerLayoutManager used for JSplitPanes with an orientation of
 VERTICAL_SPLIT. | |
| class  | DefaultMenuLayoutThe default layout manager for Popup menus and menubars. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.