If you do not specify a cardinal directive a component added to a BorderLayout will default to the center. Notice that when adding the Button objects to the Panel they are using the default layout manager for the Panel, FlowLayout. We placed the Button components into a Panel container because we can then simply place the container in the north section. If you resize the application to be a bit wider the fourth Button will come into view. This differs quite a bit from FlowLayout.
Lets examine some of the components which can be put in panels and frames.
However, the components use the default layout of the Panel, FlowLayout, for positioning components placed within the Panel. We could have created separate panels and added them to different cardinal sections of the Frame if so desired. The last portion of the AWT we will investigate is the Menu.