AspectFrame.setRatio

void setRatio(float ratio)

Sets the desired aspect ratio of the child.

Parameters

ratioaspect ratio of the child