Mixing JavaFX and Swing

I am writing a desktop application and I like to use swing components since javafx does not provide a tabbedpane component. I can embed my custom swing component with SwingComponent.wrap (swingComp); Therefore, I have a swing tabbedpane that accepts swing components as children. These children are also swing components, and they have two properties, name and content. The title is a string, but the content is a swingcomponent. How can I embed the javafx container again in these rotation tabs? Thanks in advance.

+3
source share
1 answer

I suspect that after switching from JavaFX to Swing using the wrap method, you will not be able to return to JavaFX.

, JPanel, JTabbedPane JPanel. JPanel.

+1

All Articles