Fields
| Name | Description |
|---|---|
| CENTER | This value indicates that each row of components should be centered. |
| LEFT | This value indicates that each row of components should be left-justified. |
| RIGHT | This value indicates that each row of components should be right-justified. |
Constructors
| Name | Description |
|---|---|
| FlowLayout() | Constructs a new Flow Layout with a centered alignment and a default 5-unit horizontal and vertical gap. |
| FlowLayout(int) | Constructs a new Flow Layout with the specified alignment and a default 5-unit horizontal and vertical gap. |
| FlowLayout(int, int, int) | Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps. |
Methods
| Name | Description |
|---|---|
| addLayoutComponent(String, Component) | Adds the specified component to the layout. |
| getAlignment() | Gets the alignment for this layout. |
| getHgap() | Gets the horizontal gap between components. |
| getVgap() | Gets the vertical gap between components. |
| layoutContainer(Container) | Lays out the container. |
| minimumLayoutSize(Container) | Returns the minimum dimensions needed to layout the components contained in the specified target container. |
| preferredLayoutSize(Container) | Returns the preferred dimensions for this layout given the components in the specified target container. |
| removeLayoutComponent(Component) | Removes the specified component from the layout. |
| setAlignment(int) | Sets the alignment for this layout. |
| setHgap(int) | Sets the horizontal gap between components. |
| setVgap(int) | Sets the vertical gap between components. |
| toString() | Returns a string representation of this FlowLayout object and its values. |