alignmentY

Sets the vertical alignment along the y axis, where 0.0 aligns to the top, 0.5 centers, and 1.0 aligns to the bottom. A parent that honors alignment - a horizontal BoxLayout - lines its children up by this value, so siblings given the same alignment stay on one row.

Removal restores the alignment as alignmentX describes.

Return

this modifier with the vertical alignment declared on it.

Parameters

value

the fraction of the component's height the parent lines its children up on; Swing clamps a value outside 0.0..1.0 into that range rather than rejecting it.

See also