All components in a container are arranged according to a layout manager. In the example, the three horizontal panels are placed within the larger panel using GridLayout. However, each smaller panel uses its own layout manager to govern the position of the buttons within it. The layout manager is determined by using, for example, setLayout(new FlowLayout(FlowLayout.LEFT));.