Hello! How can I embed Win32 components into Compose? I am trying to make a WebView2 library and have implemented JNI calls. But I don't know how to embed it, it will only pop up an independent window.
Or, is there any library that implements this feature that I can refer to?
z
Zach Klippenstein (he/him) [MOD]
01/18/2025, 4:42 PM
What you need to figure out is how to embed Win32 components into AWT/Swing, which is what compose desktop is built on. Then you can embed that awt/swing integration in your composable.
z
Zhang Zihan
01/18/2025, 4:57 PM
Thanks! I have no experience with Java GUI, I will try to start learning it.