Login  Register

Re: Jogl and JavaFX

Posted by gouessej on Dec 05, 2013; 10:09am
URL: https://forum.jogamp.org/Jogl-and-JavaFX-tp4030720p4030777.html

ul wrote
Thanks, I think I get the picture now.
You're welcome.

ul wrote
I looks like I have three major options. First I can use JavaFX and its Java3D-like capabilities without Jogl.
Expect very bad performance on machines using the (fallback) software renderer and JavaFX 3D APIs are poorer than the ones of major scenegraphs supporting JOGL 2.x.

ul wrote
Second I can use Swing/AWT/NEWT with Jogl.
There is an example of project using JOGL with Netbeans Platform (not very up to date):
https://github.com/nilshoffmann/netbeans-jogl2
This is the most reliable "option".

ul wrote
And third I can use JFace/SWT with Jogl.
Why not?

ul wrote
JavaFX is the future but once bitten twice shy as they say and that's how I feel about it. I really would want a fallback on OpenGL if the 3D part of JavaFX for some reason is limiting.
JavaFX itself has some design flaws. Its memory footprint is noticeably bigger than the one of Swing. It's better with Java 1.8 but deployment with Java 1.7 is not that good, there are some troubles when an old version of JavaFX separated from the JRE is still installed when you update this JRE. JavaFX can be interesting but it is so rigid, it's designed to be used as is, some efforts are done to allow some interoperability with SWT and Swing but I wouldn't rely on that.

ul wrote
The Swing option probably is the best right now but it's not that fun to work with deprecated technology. No new features, no bug fixes, a dwindling user community and all that.
Do you think it is really fun to work with extremely immature technologies? JavaFX doesn't have a large community anyway.

ul wrote
So it may be that the Eclipse option is the best really. Eclipse is well supported with a huge infrastructure and probably the most successful Java application ever on the desktop. SWT may very well be the ultimate portable GUI subsystem I couldn't find in the C++ world.
I wouldn't consider it as portable as Swing.
Julien Gouesse | Personal blog | Website