class org.aswing.SoftBox extends JPanel
A JPanel
with SoftBoxLayout
.
The picture below shows that when set X_AXIS
, all of the child component share the same height no matter what value you set for the componnet.
It ignores the width
and height
property you set for the child component.
![](../../SoftBoxLayoutX.jpg)
The picture below shows that when set Y_AXIS
,all of the child component share the same width no matter what value you set for the componnet.
It ignores the width and height property you set for the child component.
![](../../SoftBoxLayoutY.jpg)
Author paling, ngrebenshikov
Class Fields
static function createHorizontalBox(?gap:Int = 0, ?align:Int = 2): SoftBox
Creates and return a Horizontal SoftBox.
gap | (optional)the gap between each component, default 0 |
align | (optional)the alignment value, default is |
returns | a horizontal SoftBox. |
static function createHorizontalGlue(?width:Int = 4): Component
@see org.aswing.JSpacer.createHorizontalGlue
static function createVerticalBox(?gap:Int = 0, ?align:Int = 2): SoftBox
Creates and return a Vertical SoftBox.
gap | the gap between each component, default 0 |
align | (optional)the alignment value, default is |
returns | a vertical SoftBox. |
static function createVerticalGlue(?height:Int = 4): Component
@see org.aswing.JSpacer.createVerticalGlue
Instance Fields
function new(?axis:Int = 1, ?gap:Int = 0, ?align:Int = 2): Void
SoftBox(axis:int, gap:int, align:int)
SoftBox(axis:int, gap:int)
default align to SoftBoxLayout.LEFT
.
SoftBox(axis:int)
default gap to 0.
SoftBox()
default axis to SoftBoxLayout.Y_AXIS
.
Creates a panel with a SoftBoxLayout
.
@see org.aswing.SoftBoxLayout
axis | the axis of layout. |
gap | (optional) the gap between each component, default 0 |
align | (optional) the alignment value, default is |