If using Spring interop is it generally preferable...
# compose-desktop
j
If using Spring interop is it generally preferable, given a choice, to use
ComposePanel
within Swing based UI or
SwingPanel
instead Compose based UI? (from a performance perspective)
k
Is this a theoretical question? In practice that would most likely be driven by the current state of your codebase. If you have a large Swing project that you’re planning to migrate to Compose over time, you would be embedding ComposePanel(s) over time. And if it’s a Compose project with a Swing-based component for which you don’t (yet?) have a Compose alternative, that would be embedding SwingPanel(s).
j
I have a Compose for Desktop app that's using https://github.com/msteiger/jxmapviewer2 Swing component to display a map (from https://github.com/joreilly/BikeShare/blob/main/compose-desktop/src/main/kotlin/main.kt).... when I created it initially I used
ComposePanel
but thinking it's probably preferable to swap things around and include swing component as part of
SwingPanel
🤔 1