<https://www.zdnet.com/article/kotlin-language-mak...
# compose-desktop
a
It says about JavaFX interop. Did I miss something? I was waiting for it.
i
No, there no official interop with JavaFX. We recently fixed the issue when we cannot use simultaneously JavaFX coroutines library and Compose: https://github.com/JetBrains/compose-jb/issues/17 Probably that is what the article means by "improved interoperability with JavaFX".
👍 1
a
OK then. Interop with JavaFX would be nice to have. Tornado is sadly mostly dead, but JavaFX still has a lot to offer.
m
@Igor Demin What's the path to JavaFX interoperability. What's needed to, say, visualize a Compose UI inside a JavaFX stage?
i
What's needed to, say, visualize a Compose UI inside a JavaFX stage
1. We need to figure out how to draw directly onto Surface which should be provided by JavaFX. And probably implement it for each desktop OS (for AWT Surface we have to write native code for each platform, for example https://github.com/JetBrains/skiko/blob/master/skiko/src/jvmMain/cpp/windows/drawlayer.cc) 2. Integrate with JavaFX event handling. For AWT we done it in https://cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:co[…]c/desktopMain/kotlin/androidx/compose/desktop/ComposeLayer.kt
💯 1
m
Thanks, @Igor Demin!