About OverlayLayout2

OverlayLayout2 arranges components over the top of each other. The requested size of the container will be the largest requested size of the children, taking alignment needs into consideration. The alignment is based upon what is needed to properly fit the children in the allocation area. The children will be placed such that their alignment points are all on top of each other. Unlike BorderLayout 's centering, OverlayLayout2 does not expand the component to fill the available space, but instead leaves it at is preferred size.