Hi all! In the Swing Interoperability examples (<h...
# compose-desktop
d
Hi all! In the Swing Interoperability examples (https://github.com/JetBrains/compose-jb/tree/master/tutorials/Window_API_new#swing-interoperability), it is shown how to open an AWT file dialog. I see that there is a
window
in the
FrameWindowScope
of the
Window
composable, but is there a corresponding ambient?
k
No, that ambient was removed some time ago
d
OK I created mine... Thanks. Side question, I am fighting with Swing. Does someone knows how to: 1. show the dialog in the front (On the second dialog opening, it appears behind the ComposeWindow.) 2. position the center of the dialog in the center of the ComposeWindow (The best I was able do is having the dialog's top-left in the center of the ComposeWindow.) (Also the call to
onCloseRequest
in the implementation of
setVisible
is really counter-intuitive.)