Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Mixing Swing and Native Components

DZone's Guide to

Mixing Swing and Native Components

· Java Zone
Free Resource

Bitbucket is for the code that takes us to Mars, decodes the human genome, or drives your next car. What will your code do? Get started with Bitbucket today, it's free.

DJ Native Swing is a nice solution to embed native components (Web Browser, Flash Player, etc.).

There was still a general issue that this library did not resolve though: the possibility to mix heavyweight and lightweight components with lightweight components on top, to change their Z-order or re-parent them.

Fortunately, The release 0.9.3 offers interesting advances in this area.

 

Component mix

 

Using these features is as simple as changing some options before instanciating native components, in order to extend their behavior.

You can try all the features (including the new options) with the Webstart Demo: http://djproject.sourceforge.net/ns/DJNativeSwingDemo.jnlp

The Webstart demo is configured to work on Windows. It also works on Linux (GTK, x86/i386) where XULRunner is installed. Note that this demo is part of the release package.

In my opinion, this gets us one step closer to proper native integration. What do you think? Have you got any comments or suggestions?

 

-Christopher


Screenshots: http://djproject.sourceforge.net/ns/screenshots
Native Swing: http://djproject.sourceforge.net/ns
The DJ Project: http://djproject.sourceforge.net

Bitbucket is the Git solution for professional teams who code with a purpose, not just as a hobby. Get started today, it's free.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}