Separator

@Composable
fun Separator(modifier: SwingModifier = SwingModifier, orientation: Int = SwingConstants.HORIZONTAL)

A JSeparator: the divider line that breaks the items of any container into groups. A tool bar takes its own divider - see org.jetbrains.compose.swing.components.layout.ToolBarSeparator.

Parameters

modifier

the SwingModifier applied to the underlying component

orientation

the orientation of the separator (an Orientation SwingConstants value); HORIZONTAL by default, which draws the line across the width it is given, dividing items stacked one above the other

See also