Package-level declarations

Types

Link copied to clipboard
class OnDemandComposition(parent: CompositionContext, content: @Composable () -> Unit) : DisposableHandle

A composition of Swing content under parent. It recomposes when parent snapshot state it reads changes. recompose drives its own synchronous pass on the caller's thread before returning, without waiting for the enclosing window's frame loop.

Functions

Link copied to clipboard
fun Window.setContent(content: @Composable () -> Unit): DisposableHandle
fun JMenuBar.setContent(content: @Composable () -> Unit): DisposableHandle

Sets the composable content of a JMenuBar.

fun JComponent.setContent(parent: CompositionContext? = null, content: @Composable () -> Unit): DisposableHandle

Sets the composable content of any JComponent (a JPanel, a window's content pane, ...).