Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JavaFX the easiest way to get a HTML5 browser in a SWT app?
JavaFX the easiest way to get a HTML5 browser in a SWT app? [message #1089751] Mon, 19 August 2013 07:30 Go to next message
William Saar is currently offline William SaarFriend
Messages: 16
Registered: July 2009
Junior Member
It seems JavaFX is the easiest way to get a decent HTML5 browser in my SWT application, are there other embedded HTML5 browsers that support integration with SWT or am I overcomplicating things with the SWT-browser implementations?

My application needs to support 32- and 64-bit builds based on Eclipse 3.8 (or perhaps 4.2) and I have come up with the following solutions where the JavaFX alternative seems to be the only solution that supports both 32-bit and 64-bit and does not force users to perform separate installations.

1. Bundle jfxrt.jar in my plugin (or get it from a bundled JVM) and just display a WebView in a FXCanvas. No other installations necessary.

2. Use SWT Browser with WebKit and force the user to install Safari, doesn't work with 64-bit SWT.

3. Bundle Mozilla XulRunner, also breaks 64-bit support unless running with Eclipse 4.3 and forcing the user to install the Visual C++ 64-bit re-distributables.

Maybe a SWT.JAVA_FX could provide SWT integration with the JavaFx WebView?


MediaOrgan - media organizer for your local computer and the web using Eclipse RCP/RAP - http://mediaorgan.com

[Updated on: Mon, 19 August 2013 07:32]

Report message to a moderator

Re: JavaFX the easiest way to get a HTML5 browser in a SWT app? [message #1090108 is a reply to message #1089751] Mon, 19 August 2013 18:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 19.08.13 09:30, William Saar wrote:
> It seems JavaFX is the easiest way to get a decent HTML5 browser in my
> SWT application, are there other embedded HTML5 browsers that support
> integration with SWT or am I overcomplicating things with the
> SWT-browser implementations?
>
> My application needs to support 32- and 64-bit builds based on Eclipse
> 3.8 and I have come up with the following solutions where the JavaFX
> alternative seems to be the only solution that supports both 32-bit and
> 64-bit and does not force users to perform separate installations.
>
> 1. Bundle jfxrt.jar in my plugin (or get it from a bundled JVM) and just
> display a WebView in a FXCanvas. No other installations necessary.
>

WebView is a native component and you need to ship the appropriate DLLs
unless you rely on the one installed coming with the JRE.

Sidenotes:

1.
I guess you know that WebView on 64bit does not jit JavaScript code so
performance for JS heavy apps might be not as good as you'd expect.

2.
If you ship your own jfxrt.jar please note that your stuff breaks if the
Java on the system already has jfxrt.jar because the native DLLs always
take precendence before your custom ones

See http://tomsondev.bestsolution.at/2012/08/01/javafx-2-2-and-osgi/

> 2. Use SWT Browser with WebKit and force the user to install Safari,
> doesn't work with 64-bit SWT.
>
> 3. Bundle Mozilla XulRunner, also breaks 64-bit support unless running
> with Eclipse 4.3 and forcing the user to install the Visual C++ 64-bit
> re-distributatbles.
>
>
Re: JavaFX the easiest way to get a HTML5 browser in a SWT app? [message #1092883 is a reply to message #1090108] Fri, 23 August 2013 09:29 Go to previous messageGo to next message
William Saar is currently offline William SaarFriend
Messages: 16
Registered: July 2009
Junior Member
No Message Body

MediaOrgan - media organizer for your local computer and the web using Eclipse RCP/RAP - http://mediaorgan.com

[Updated on: Fri, 23 August 2013 14:52]

Report message to a moderator

Re: JavaFX the easiest way to get a HTML5 browser in a SWT app? [message #1092888 is a reply to message #1090108] Fri, 23 August 2013 09:34 Go to previous messageGo to next message
William Saar is currently offline William SaarFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks, I did not know about the JIT issue on 64-bit architectures.

Issue 2 would only occur if I try to bundle a different version of JavaFX than is already installed on the system, right? Anyway, I think we can get away with bundling the JVM for the application as well so it should be OK.

...ideally I would of course have hoped to be told about some clean way to integrate a decent HTML5 browser in a SWT app without requiring the user to install anything but our own application.


MediaOrgan - media organizer for your local computer and the web using Eclipse RCP/RAP - http://mediaorgan.com
Re: JavaFX the easiest way to get a HTML5 browser in a SWT app? [message #1699591 is a reply to message #1089751] Thu, 25 June 2015 09:39 Go to previous message
Imtiaz kHADIM is currently offline Imtiaz kHADIMFriend
Messages: 1
Registered: June 2015
Junior Member
Does JavaFX webview share cookies with the OS native browser. As I know SWT browser does share cookies with the OS native browser but I ma not sure about WebView?
Previous Topic:GC.drawText throws Pango errors
Next Topic:Combo Autill Based On User Entry
Goto Forum:
  


Current Time: Tue Mar 19 07:11:13 GMT 2024

Powered by FUDForum. Page generated in 0.02011 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top