Kevin Rushforth from the JavaFX team, plus others from the JavaFX team, are in the booth right next to the NetBeans booth here at JavaOne Latin America. Talking about Swing and JavaFX, etc, Kevin told me that there's a SwingInterop sample in the set of samples that come with NetBeans IDE 7.1:
I had always assumed that that sample showed how to embed Swing components inside a JavaFX app. However, the opposite is now the case because the sample was rewritten at some point. Now you end up with an application structure like this:
Run it and you see this:
When you type something in the JTable above, the JavaFX graph updates, while showing cool up/down animations as the data changes. Switch to the other tab and you see the JavaFX WebView.
Not much later we had the JavaFX panes above running in a NetBeans Platform application, using TopComponents instead of a JTabbedPane:
Here the browser window is detached:
What's the benefit? Well, now JavaFX has a docking framework and a module system. In other words, in addition to the window system that you see above, each of its windows can be plugged into the application at runtime. And... now Swing developers have JWebPane, at last, as well as cool animations in their graphs.