PPT Slide
Step Three: Arranging the components using nested containers:
- Consider the overall design in terms of one or more Layout Managers (for this example, GridLayout is sufficient).
- The Applet itself is a container. Begin there, and create appropriate subdivisions of screen space:
- For this design, the main container is split into 4 quadrants, each of equal size.
- This suggests a grid layout on the Applet, with
2 rows and 2 columns, i.e.,
setLayout (new GridLayout (2,2));