ToolBarSeparator
The divider that groups a ToolBar's items - JToolBar.Separator. It takes its orientation from the bar holding it, so it lies across the bar's own axis and turns with it. To divide anything else, use org.jetbrains.compose.swing.components.Separator.
The separator takes its place among the tool bar's items in declaration order:
ToolBar {
Button(text = "New", onClick = { ... })
ToolBarSeparator()
Button(text = "Delete", onClick = { ... })
}Content copied to clipboard
Parameters
modifier
the SwingModifier applied to the underlying component
size
the size of the separator; null by default, which leaves the size to the look and feel. Withdrawing a declared size hands back the size the look and feel gave the separator, where it gave one; a separator its look and feel named no size for keeps the last size declared