Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
Modifier and Type | Interface and Description |
---|---|
interface |
LayoutManager2
Defines an interface for classes that know how to layout Containers
based on a layout constraints object.
|
Modifier and Type | Class and Description |
---|---|
class |
BorderLayout
A border layout lays out a container, arranging and resizing
its components to fit in five regions:
north, south, east, west, and center.
|
class |
CardLayout
A
CardLayout object is a layout manager for a
container. |
class |
FlowLayout
A flow layout arranges components in a directional flow, much
like lines of text in a paragraph.
|
class |
GridBagLayout
The
GridBagLayout class is a flexible layout
manager that aligns components vertically, horizontally or along their
baseline without requiring that the components be of the same size. |
class |
GridLayout
The
GridLayout class is a layout manager that
lays out a container's components in a rectangular grid. |
Modifier and Type | Method and Description |
---|---|
LayoutManager |
Container.getLayout()
Gets the layout manager for this container.
|
Modifier and Type | Method and Description |
---|---|
void |
ScrollPane.setLayout(LayoutManager mgr)
Sets the layout manager for this container.
|
void |
Container.setLayout(LayoutManager mgr)
Sets the layout manager for this container.
|
Constructor and Description |
---|
Panel(LayoutManager layout)
Creates a new panel with the specified layout manager.
|