[fedora-java] My wishes for Java: No more GTK2

Mickael Istria mistria at redhat.com
Tue Oct 14 08:21:10 UTC 2014


Hi all,

Note that I'm not a C developer so I don't feel able to provide any 
patch to OpenJDK, that's why I send this mail to hopefully motivate some 
more competent people to solve some issues we have ;)

In the context of development of Eclipse/SWT-based applications, I'd 
like to share with you one of the issues we have currently. It's about 
SWT vs JavaFX and GTK3 vs GTK2.
SWT and JavaFX can theorically live together in the same application ( 
http://docs.oracle.com/javafx/2/swt_interoperability/jfxpub-swt_interoperability.htm 
). This is interesting because JavaFX provide a nice WebView, which we 
could embed in Eclipse as an alternative/complement to invoking 
XulRunner or Webkit wrapper when rendering web pages in Eclipse. 
However, SWT is moving to GTK3 whereas JavaFX is still stuck on GTK2. So 
both can't coexist properly in the same application.
Apparently, only the fx-glass module needs update, so it doesn't seem to 
be a too difficult task to change code to use GTK3 instead of GTK2.
However, in this message 
https://www.mail-archive.com/openjfx-dev@openjdk.java.net/msg05966.html 
, it's said that JavaFX can't move to GTK3 because the Swing/AWT part is 
also linked to GTK2, and since both are shipped together, it doesn't 
make sense to introduce inconsistency between different JVM "modules". 
So it seems like if we want to align JavaFX on GTK3, it also requires to 
move AWT to GTK3.

Do any of you have already investigated those issues? Does anyone 
already has plan to provide fixes for that?

Cheers,
-- 
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets 
<http://twitter.com/mickaelistria>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/java-devel/attachments/20141014/ec6913f5/attachment.html>


More information about the java-devel mailing list