1 | Each component in a Layout may itself be a Panel with another Layout Manager, thus subdividing areas of the user interface. Using this hierarchy one can achieve complex GUI's. |
2 |
A simple example of using hierarchical Layout divides the main applet space into two components in a BorderLayout. The Center component is a Canvas for drawing graphics or images; the North component is itself a Panel which has three buttons in a GridLayout. This example is a very simple example of a standard paradigm for drawing or displaying data.
|