InternalFrameScope

sealed interface InternalFrameScope

The receiver of an internal frame's content, declared through DesktopPaneScope.InternalFrame.

The frame's content lands in the frame's content pane, and GlassPane declares the frame's glass pane.

InternalFrame(title = "Editor", bounds = Rectangle(24, 24, 320, 200), onClose = { open = false }) {
Editor()
if (saving) {
GlassPane(PanelLayout.GridBag) { ProgressBar(value = 0, indeterminate = true) }
}
}

See also

Functions

Link copied to clipboard
@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.

@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.