Hello! How can I embed Win32 components into Compo...
# compose-desktop
z
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
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
Thanks! I have no experience with Java GUI, I will try to start learning it.
Many StackOverflow posts show that this seems impossible... Embedding a native window inside a JFrame How do I run an external program inside a Java frame in netbeans in a platform independent manner? But this is really important, Compose Desktop needs a lightweight WebView. KCEF (compose-webview-multiplatform uses it) is too heavy, it needs to download about 400MB files