Example usage for Java java.awt FlowLayout fields, constructors, methods, implement or subclass
The text is from its open source code.
int | LEFT This value indicates that each row of components should be left-justified. |
int | CENTER This value indicates that each row of components should be centered. |
int | RIGHT This value indicates that each row of components should be right-justified. |
int | LEADING This value indicates that each row of components should be justified to the leading edge of the container's orientation, for example, to the left in left-to-right orientations. |
int | TRAILING This value indicates that each row of components should be justified to the trailing edge of the container's orientation, for example, to the right in left-to-right orientations. |
FlowLayout() Constructs a new FlowLayout with a centered alignment and a default 5-unit horizontal and vertical gap. | |
FlowLayout(int align) Constructs a new FlowLayout with the specified alignment and a default 5-unit horizontal and vertical gap. | |
FlowLayout(int align, int hgap, int vgap) Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps. |
void | addLayoutComponent(String name, Component comp) Adds the specified component to the layout. |
int | getAlignment() Gets the alignment for this layout. |
boolean | getAlignOnBaseline() Returns true if components are to be vertically aligned along their baseline. |
int | getHgap() Gets the horizontal gap between components and between the components and the borders of the Container |
int | getVgap() Gets the vertical gap between components and between the components and the borders of the Container . |
void | layoutContainer(Container target) Lays out the container. |
Dimension | minimumLayoutSize(Container target) Returns the minimum dimensions needed to layout the visible components contained in the specified target container. |
Dimension | preferredLayoutSize(Container target) Returns the preferred dimensions for this layout given the visible components in the specified target container. |
void | setAlignment(int align) Sets the alignment for this layout. |
void | setAlignOnBaseline(boolean alignOnBaseline) Sets whether or not components should be vertically aligned along their baseline. |
void | setHgap(int hgap) Sets the horizontal gap between components and between the components and the borders of the Container . |
void | setVgap(int vgap) Sets the vertical gap between components and between the components and the borders of the Container . |
String | toString() Returns a string representation of this FlowLayout object and its values. |