| JavaFX the easiest way to get a HTML5 browser in a SWT app? [message #1089751] |
Mon, 19 August 2013 03:30  |
William Saar 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 03:32] 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 05:34  |
William Saar 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
|
|
|
Powered by
FUDForum. Page generated in 0.08368 seconds