JavaFX Browser as a Ready-to-Roll NetBeans Module

The dream—a single NetBeans module that provides the JavaFX browser component wrapped in a NetBeans TopComponent. Regardless of race, color, or creed, i.e., operating system, operating system, or operating system, it should be possible to add that module to the application, as shown below: 

...and then, simply by running the application, without any tweaking at all, the JavaFX browser should be part of the application:

And that dream is a reality, here:

I created the module and added all the native libraries for Windows and Linux, Toni added the native libraries for Mac OS X today. So, in principle, when you download the module and add it to the application as shown above, the application should start without a problem and display the JavaFX component regardless of the operating system you're using.

The downside is that you end up with a gazillion native libraries in your application since it is unclear which native libraries are actually needed, so Toni and I simply included literally all of them.

Feedback on this module would be much appreciated, including code contributions. Would be great if someone added next/prev buttons to it, for example.

Note: This module is completely experimental and sooner or later you will have some kind of problem with it. Nevertheless, would be great if several NetBeans Platform developers would try it out and give feedback.


The conventional way to handle the platform-specific libraries is for the master module to require a token; then each autoload platform module bundles one set of libs, provides the token, and requires the OS token. Of course you no longer have just one NBM, but you can have just one update center. We did this for e.g. the XUL runner, and in 7.2 also the masterfs native FS notifiers.

Of course it would be nice if JavaFX generally were packaged properly as a library wrapper, with the NB browser integration (preferably an impl of HtmlBrowser.URLDisplayer) done as a separate module.

Posted by Jesse Glick on February 21, 2012 at 04:39 PM PST #

there already is JavaFX browser module in NetBeans, see easel_css_72 branch

Posted by guest on February 22, 2012 at 03:16 AM PST #

I guess such a JavaFX browser is based on WebView, isn't it ?

WebView needs still more methods for implementing a browser, see for example:

But it's quite evolving into the right direction. It's very promising.

Posted by Dominique De Vito on February 22, 2012 at 04:46 AM PST #

I wrote a post "JavaFX may be the next Adobe AIR"

Having embedded WebKit into JavaFX was a great step into that direction.

Posted by Dominique De Vito on February 22, 2012 at 04:48 AM PST #

which is the difference with the web module in javafx?

Posted by guest on February 22, 2012 at 07:05 AM PST #

I require some Guide . I have Total 5.6 yrs of Exp in Oracle Forms,Oracle Report ,Oracle PL-SQL and Performance Tunning . I want to swith my career in Oracle Apps what can I do for same .Can give me right guide for same .
Jignesh THaker

Posted by Thaker Jignesh on February 22, 2012 at 08:02 PM PST #

I created a simple JavaFX web browser based on WebView with support for things like history menus, forward, back and refresh buttons, favicon display, multiple tabs, firefox lite debugging, pdf display etc. It's not as fully featured as a modern browser, but anybody who wants to can make use of it's source code if they want:

Posted by jewelsea on February 27, 2012 at 05:48 PM PST #

This looks really promising, but doesn't seem to work in x64 windows - is that expected?

Posted by raj on February 29, 2012 at 02:22 PM PST #

I created the module on x64 windows and it works perfectly there.

Posted by Geertjan on February 29, 2012 at 06:57 PM PST #

I checkout from svn and run it. every thing is fine. But when i upgrade javafx to version 2.1 a browser will disappear after netbeans layout was changed.
I run on windows 64bit but use 32 bit jdk.
Is you has same problem?

Posted by guest on May 23, 2012 at 07:43 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016