Box

class Box(val axis: Int = BoxLayout.Y_AXIS) : PanelLayout<PanelScope>

Lays the children out one after another along a single axis, in declaration order.

A BoxLayout puts no space between children on its own. Declare gaps as content: RigidArea and Strut for a fixed gap, Glue for empty space that takes the largest share of what is left over.

See also

Constructors

Link copied to clipboard
constructor(axis: Int = BoxLayout.Y_AXIS)

Properties

Link copied to clipboard
val axis: Int

the axis along which children are arranged (a BoxAxis BoxLayout value); the default Y_AXIS stacks them top to bottom

Link copied to clipboard

the scope the container's content is composed in

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun <C : Container> installOn(updater: SwingNodeUpdater<C>)

Lays the container out under this layout. An implementation makes one write on updater through installManager.