LayoutContainer container = new LayoutContainer(); container.setLayout(new FitLayout()); ContentPanel panel = new ContentPanel(); container.add(panel); container.setSize(400, 400);
@see FitData
This is a base class for layouts that contain a single item that automatically expands to fill the layout's container.
FitLayout does not have any direct config options (other than inherited ones). To fit a panel to a container using FitLayout, simply set layout to FitLayout on the container and add a single panel to it. If the container has multiple panels, only the first one will be displayed.
@author Sanjiv Jivan
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|