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
Kirill Grouchnikov
07/27/2023, 2:54 PM
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).