
900 CHAPTER 12 Graphical User Interfaces
Figure 12.21
BorderLayout Areas
North
Center
South
West East
TABLE 12.23 The Container add Method for Using a BorderLayout
Return value Method name and argument list
void add( Component c, Object borderlayoutArea )
adds the component c to the container.The area defined by border-
layoutArea can be specified using any of the following static String
constants in the BorderLayout class:NORTH,SOUTH,EAST,WEST,
CENTER.
12.14 Layout Managers:BorderLayout
A BorderLayout organizes a container into five areas: north, south, west, east,
and center, with each area holding at most one component. Thus, for each
area, you can add