Java Reference
In-Depth Information
Figure 10-16.
Sample OverlayLayout with 0.0 x and y alignments
Figure 10-17.
Sample OverlayLayout with 1.0 x and y alignments
If the x and y alignment of each button is 0.5f, the axis point for the three components is
their center, and the components are in the center of the container. Figure 10-18 shows this
appearance.
Figure 10-18.
Sample OverlayLayout with 0.5 x and y alignments