Skip to content
Snippets Groups Projects
Unverified Commit f9e6283c authored by jimgoog's avatar jimgoog Committed by GitHub
Browse files

Wordsmith swing interop API description (#500)

We've been seeing an antipattern where people are literally "passing a view/jcomponent" into the interop API by merely referencing the native object in the factory lambda.  This usage is very much an antipattern.  Wordsmithing a bit to avoid putting that idea into people's minds.
parent 8d6be484
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ fun Counter(text: String, counter: MutableState<Int>) { ...@@ -149,7 +149,7 @@ fun Counter(text: String, counter: MutableState<Int>) {
## Adding a Swing component to CFD composition using SwingPanel. ## Adding a Swing component to CFD composition using SwingPanel.
SwingPanel lets you create a UI using Swing components in a Compose-based UI. To achieve this you need to create Swing component and pass it as a parameter to SwingPanel. SwingPanel lets you create a UI using Swing in a Compose-based UI. To achieve this you need to create Swing `JComponent` in the `factory` parameter of `SwingPanel`.
```kotlin ```kotlin
import androidx.compose.desktop.SwingPanel import androidx.compose.desktop.SwingPanel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment