public interface LayoutManager
public interface LayoutManger2 extends LayoutManager
FlowLayout()
: Creates layout of default size.FlowLayout(int align)
: Creates layout of given size.FlowLayout(int align, int hgap, int vgap)
: Creates layout of given alignment with horizontal and vertical gap.Constraints | Description |
---|---|
gridx,gridy | Indicates the position of the component in the grid. |
gridwidth, gridheight | Indicates the size of the cells. |
weightx, weighty | Indicates the expandable container area. |
ipadx, ipady | Specifies the padding between the borders and components. |
fill | Functions when the component coverage area is greater than the component size. |
anchor | Specifies the position of component when an extra room is allotted within the given space. |
insets | Indicates the left-out space between the Components and borders. |