method is used to specify a container’s layout?

The setLayout() method is used to specify a container’s layout.