A good answer might be:


Nested Panels

JPanels are both components and containers. As a component they can be placed inside containers (such as JPanel) and as a container they can contain other JPanels. Each panel has its own layout manager which may be any of several types. Nest panels within panels to control the layout of complicated user interfaces. At right is a sample user interface. Assume that the labels are associated with the text fields.


Suggest how panels are used to create this user interface.