GlassPane

@Composable
abstract fun GlassPane(modifier: SwingModifier = SwingModifier, content: @Composable PanelScope.() -> Unit)

Shows the frame's own glass pane, holding content under the pane's own FlowLayout: a PanelLayout.Flow with its defaults.

Parameters

modifier

the SwingModifier applied to the glass pane

content

the composable content the glass pane shows over the frame

See also


@Composable
abstract fun <S : PanelScope> GlassPane(layout: PanelLayout<S>, modifier: SwingModifier = SwingModifier, content: @Composable S.() -> Unit)

Shows the frame's own glass pane, holding content under layout.

The pane covers the frame below its title bar and is transparent where content paints nothing. A click over part of content that listens goes there, and a click anywhere else goes on to the frame's content underneath. modifier reaches the pane itself: a mouse listener there keeps the frame's content out of reach, a cursor there shows over the frame below its title bar.

The pane is shown, hidden and refused as LayerScope.GlassPane describes, with a frame in place of a layer.

Parameters

layout

the layout the pane's children are laid out under; see PanelLayout

modifier

the SwingModifier applied to the glass pane

content

the composable content the glass pane shows over the frame, with layout's scope as its receiver

See also