class org.aswing.JSpacer extends Component
JSpacer
provides basic functionality to create empty spaces between
other components.
@author paling @author Igor Sadovskiy.
Class Fields
static function createHorizontalSpacer(?width:Int = 4): JSpacer
Creates a Spacer that displays its components from left to right.
width | (optional)the width of the spacer, default is 4 |
returns | the spacer |
static function createSolidSpacer(?width:Int = 4, ?height:Int = 4): JSpacer
Creates a solid Spacer with specified preffered width and height.
width | (optional)the width of the spacer, default is 4 |
height | (optional)the height of the spacer, default is 4 |
returns | the spacer |
static function createVerticalSpacer(?height:Int = 4): JSpacer
Creates a Spacer that displays its components from top to bottom.
height | (optional)the height of the spacer, default is 4 |
returns | the spacer |
Instance Fields
function new(?prefSize:IntDimension = null): Void
Sets the distance between the components and updates user interface.
@see IntDimension