FillLayout places its components in a single row or column, forcing them to be the same size. Unlike RowLayout, the height and width of each component can not be specified. However, margins can be specified for each component. Margins will reduce the content size of each child component.
The following code creates a horizontal RowLayout and places 2 ContentPanels side by side