Package-level declarations

Types

Link copied to clipboard
class OnDemandComposition : DisposableHandle

A composition of Swing content under parent, with no container of its own.

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, ...).

fun JPopupMenu.setContent(parent: CompositionContext, content: @Composable () -> Unit): DisposableHandle

Sets the composable menu content of this popup menu, composed under parent on this call.