Embed Swing inside JavaFX 2.0

I finally got a couple of evenings to play with JavaFX on my Mac. I think JavaFX is really cool, really, and I believe that Roman has already said what I also feel as well, so I will leave you to his very nice blog post about JavaFX on the topic 🙂

One thing I didn‘t really understand is why Sun first and Oracle then removed support to run Swing application on top of JavaFX. The opposite is still supported however, so at least is possible to support JavaFX in existing application, which probably makes more sense in many cases.

However, hold of all the technical difficulties that supporting Swing inside a JavaFX container, this may have been a very cool feature to support in the core version of FX 2.0.

Well… We thought it would have been cool then to do it ourselves 🙂 and so we did:

Thanks to Roman and Robert for the efforts of those days. It took 3 guys hacking in the evening for 2 days for that, Sun could have done it after all 😉

We‘re going to do some cleanup and then propose a patch to Oracle… ops, well… when there will code to patch at least!

In the meantime, since we are offering support for JavaFX programming, you can contact us and see if you are interested!


One response to “Embed Swing inside JavaFX 2.0

  1. Hi,
    I have a need for using java classes within a JavaFX 2.0 program. Can you please tell me how you were able to achieve this?
    Thanks in advance.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s