I am developing a Java Swing application but I want to also use JavaFX with Swing. Is there any resource for that told how to do that?
Asked
Active
Viewed 4,461 times
2 Answers
6
See here. The short story is that embedding JavaFX in Swing is now possible and supported via JFXPanel, but the other direction is not supported.

om-nom-nom
- 62,329
- 13
- 183
- 228

jsight
- 27,819
- 25
- 107
- 140
-
FYI: It is completely unsupported, uses private APIs, and almost certainly will break in the next version. – Rastislav Komara Aug 27 '09 at 06:51
-
1FYI: Both link are now broken. – HoLyVieR Jun 28 '12 at 20:14
1
The "JavaFX in Swing" link given above only works with JavaFX 1.1. Here is how to do it in JavaFX 1.2 JavaFX in Swing - 1.2. However, as Rastislav mentioned above, this is also using private APIs and will most likely break in the next major version. JFXtras has added some classes to support this, and hopefully, this will insulate the developer from the underlying release changes.

Bill the Lizard
- 398,270
- 210
- 566
- 880

JimClarke
- 1,409
- 13
- 12
-
I think so. For now the best way how to do this is just wait. – Rastislav Komara Aug 28 '09 at 11:11