Size Fitter#

public class SizeFitter#

Sizes a panel to fit what it contains, rather than the other way round. See Panel.getSizeFitter().

ContentSizeFit getHorizontalFit()#
void setHorizontalFit(ContentSizeFit value)#

How the width of the panel is chosen.

ContentSizeFit getVerticalFit()#
void setVerticalFit(ContentSizeFit value)#

How the height of the panel is chosen.

public enum ContentSizeFit#

How a size fitter sizes a panel along one direction.

public ContentSizeFit UNCONSTRAINED#

Leave the size alone.

public ContentSizeFit MIN_SIZE#

Use the smallest size the contents will fit in.

public ContentSizeFit PREFERRED_SIZE#

Use the size the contents ask for.