InternalFrame

@Composable
abstract fun InternalFrame(title: @Nls String, bounds: Rectangle, onClose: () -> Unit, modifier: SwingModifier = SwingModifier, controls: InternalFrameControls = InternalFrameControls(), content: @Composable () -> Unit)

Declares one internal frame, placed on plain bounds.

The frame is put on bounds and then left there: a move or a resize of the user's stands, nothing reports it, and the declaration reaches the frame again only when bounds itself changes. Declare the frame with an InternalFrameState instead to observe where the user leaves it.

Parameters

title

the text shown in the frame's title bar

bounds

the frame's position and size within the desktop

onClose

callback invoked when the user activates the frame's close control; remove the frame from the composition in response to actually close it

modifier

the SwingModifier applied to the frame

controls

which window controls the frame shows; none by default

content

the composable shown in the frame's body

See also


@Composable
abstract fun InternalFrame(title: @Nls String, bounds: Rectangle, internalFrameListener: InternalFrameListener, modifier: SwingModifier = SwingModifier, controls: InternalFrameControls = InternalFrameControls(), content: @Composable () -> Unit)

Declares one internal frame driven by a raw InternalFrameListener instead of an onClose lambda. The internalFrameListener is attached as-is and removed on the same instance; pass a stable instance (e.g. remember {}) to avoid churn. Use this overload to observe the full set of internal-frame events (opened, closing, closed, iconified, deiconified, activated, deactivated); the close control stays controlled, so remove the frame from the composition to actually close it.

Parameters

title

the text shown in the frame's title bar

bounds

the frame's position and size within the desktop

internalFrameListener

the listener notified of the frame's window events

modifier

the SwingModifier applied to the frame

controls

which window controls the frame shows; none by default

content

the composable shown in the frame's body

See also


@Composable
abstract fun InternalFrame(title: @Nls String, state: InternalFrameState, onClose: () -> Unit, modifier: SwingModifier = SwingModifier, controls: InternalFrameControls = InternalFrameControls(), content: @Composable () -> Unit)

Declares one internal frame whose geometry and window state are driven by the hoisted state. Assigning to InternalFrameState.bounds moves and resizes the frame, assigning to InternalFrameState.iconified iconifies or deiconifies it and assigning to InternalFrameState.maximized maximizes or restores it, and a user dragging its title bar, pulling its border or activating its iconify, maximize or restore control writes the new value back into state.

Parameters

title

the text shown in the frame's title bar

state

the hoistable, observable geometry and window state of the frame, driving this frame alone

onClose

callback invoked when the user activates the frame's close control; remove the frame from the composition in response to actually close it

modifier

the SwingModifier applied to the frame

controls

which window controls the frame shows; none by default

content

the composable shown in the frame's body

See also


@Composable
abstract fun InternalFrame(title: @Nls String, state: InternalFrameState, internalFrameListener: InternalFrameListener, modifier: SwingModifier = SwingModifier, controls: InternalFrameControls = InternalFrameControls(), content: @Composable () -> Unit)

Declares one internal frame whose geometry and window state are driven by the hoisted state, and whose window events reach a raw InternalFrameListener instead of an onClose lambda. The internalFrameListener is attached as-is and removed on the same instance; pass a stable instance (e.g. remember {}) to avoid churn.

Parameters

title

the text shown in the frame's title bar

state

the hoistable, observable geometry and window state of the frame, driving this frame alone

internalFrameListener

the listener notified of the frame's window events

modifier

the SwingModifier applied to the frame

controls

which window controls the frame shows; none by default

content

the composable shown in the frame's body

See also