FlowPanel

@Composable
fun FlowPanel(modifier: SwingModifier = SwingModifier, alignment: Int = FlowLayout.CENTER, hgap: Int = 5, vgap: Int = 5, content: @Composable () -> Unit = {})

A JPanel under a FlowLayout: the children are laid out in a row, each at the size it prefers, and a child that no longer fits the panel's width starts a new row.

Parameters

modifier

the SwingModifier applied to the panel

alignment

the horizontal alignment of components within each row (a FlowAlignment FlowLayout value); the default CENTER centers each row across the panel's width

hgap

the horizontal gap held between two adjacent components and at the panel's left and right edges; 5, FlowLayout's own default

vgap

the vertical gap held between two rows and at the panel's top and bottom edges; 5, FlowLayout's own default

content

the composable content of the panel; empty by default

See also