onWindow

Finds the single realized window (see ComposeSwingTest.onWindow). Convenience for the common one-window composition:

setContent { Window(onCloseRequest = {}, title = "Main") { ... } }
val frame = onWindow().fetch<JFrame>()