... container to which other components are attached. The components placed in the NORTH
and SOUTH
regions extend horizontally to the sides of the container and are as tall as the components placed in those regions. The EAST
and WEST
regions expand vertically between the NORTH
and SOUTH
regions and are as wide as the components placed in those regions. The component placed in the CENTER
region expands to fill all remaining space in the layout (which is the reason the JTextArea
in Fig. 26.37 occupies the entire window). If all five regions are occupied, the entire container’s space is covered by GUI components. If the NORTH
or SOUTH
region is not occupied, the GUI components in the EAST
, CENTER
and WEST
regions expand vertically to fill the remaining ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.