Glue
Empty space that asks for nothing and grows without bound - the glue of Box.createGlue, Box.createHorizontalGlue and Box.createVerticalGlue. A BoxPanel or a ToolBar shares the extent it has left over among its children in proportion to the room each has between its preferred and its maximum size; glue prefers nothing and has no ceiling, so its share is the largest. That share is the whole of the leftover extent where every sibling's maximum size is the size it prefers, and a part of it alongside any sibling with room to grow - room a component has until a maximum size is set on it:
BoxPanel(axis = BoxLayout.X_AXIS) {
Label(text = "Status")
Glue()
Button(text = "Details", onClick = { ... })
}A Row and a Column place the extent they have left over through their arrangement - Arrangement.End, Arrangement.Center and Arrangement.SpaceBetween among them.
Parameters
the SwingModifier applied to the underlying component
the axis to absorb along (an Orientation SwingConstants value); null - the default - absorbs along both