In java a layout manager class implements the LayoutManager interface. It is used to determine the position and size of the components within a container.
Components can provide size and alignment hints, still the container's layout manager has the final authority on the size and position of the components within the container.
There are some of the common tasks associated to use layout managers:
To know more about this just click:
Recommend the tutorial