In Chapter 11, we introduced three layout managers—FlowLayout, BorderLayout and GridLayout. This section presents two additional layout managers (summarized in Fig. 22.15). We discuss these layout managers in the examples that follow.
|BoxLayout||A layout manager that allows GUI components to be arranged left-toright or top-to-bottom in a container. Class Box declares a container with BoxLayout as its default layout manager and provides static methods to create a Box with a horizontal or vertical BoxLayout.|
|GridBagLayout||A layout manager similar to GridLayout, but unlike it in that components can vary in size and can be added in any ...|