Rather than specifying x and y coordinates for laying out graphical objects such as buttons and scrollbars, layout managers are used to place these objects relative to each other. Each line of Component objects is centered in the Container. FlowLayout is the default behavior of Panel and, therefore, of Applet. The components are resized to satisfy the constraints of the layout with the center component taking up all space left over after laying out the other components. Manager displays only one component at a time.
Manager arranges components into rows and columns.
The grid is filled in row by row. GridBagLayout is a grid of cells like the GridLayout class. Components may span several grid cells in either the x or the y direction. Specifies the cell of the upper left corner of the component. The default value is 1.