Re: JavaFX and it use of GTK3
If you are dependent on Qt, you won't run on systems that don't have Qt either. All software has dependencies .. GTK is what core JDK uses, Swing has a GTK L, we generally have used platforms which use GTK as our core platforms, for build, test, and support. -phil. On 06/20/2018 01:16 PM, Sverre Moe wrote: What does GTK have to say for JavaFX (disregard any AWT/Swing and SWT) ? FX is not a GTK app from a rendering perspective. It is used for all needed interaction with the Windowing System Makes sense. For GUI components such as the FileChooser. The FileChooser in JavaFX is using the system GTK theme, regardless of Modena or any other configured styling. Does it mean JavaFX supports GTK3 themes? If one have selected a desktop GTK theme could it be used in the JavaFX application for styling? No .. and no. I was wondering because I know Eclipse have been effected in the past by my installed GTK themes. To be able to utilize the GTK theme would have helped to keep theme consistent. Since dialogs such as FileChooser are using the GTK theme. Has Qt ever been a consideration for JavaFX instead of GTK? No. Why not? Would it be difficult to implement an Qt alternative for GTK in Java? If it is even feasible. In effect it means JavaFX will not work on systems that doesn't have GTK installed, though OpenJDK have no install requirement on GTK. I am running KDE which uses Qt, and apart from a very few applications I have very little reliance on GTK.
Re: JavaFX and it use of GTK3
> > What does GTK have to say for JavaFX (disregard any AWT/Swing and SWT) ? > > FX is not a GTK app from a rendering perspective. > It is used for all needed interaction with the Windowing System Makes sense. For GUI components such as the FileChooser. The FileChooser in JavaFX is using the system GTK theme, regardless of Modena or any other configured styling. > > Does it mean JavaFX supports GTK3 themes? If one have selected a > > desktop GTK theme could it be used in the JavaFX application for > > styling? > No .. and no. I was wondering because I know Eclipse have been effected in the past by my installed GTK themes. To be able to utilize the GTK theme would have helped to keep theme consistent. Since dialogs such as FileChooser are using the GTK theme. > > Has Qt ever been a consideration for JavaFX instead of GTK? > > No. Why not? Would it be difficult to implement an Qt alternative for GTK in Java? If it is even feasible. In effect it means JavaFX will not work on systems that doesn't have GTK installed, though OpenJDK have no install requirement on GTK. I am running KDE which uses Qt, and apart from a very few applications I have very little reliance on GTK.
Re: JavaFX and it use of GTK3
J On 06/20/2018 12:21 PM, Sverre Moe wrote: Pardon me for asking this on the dev mailing list, but I wanted to get this directly from the source. I was glad to read that Java had gotten support for GTK3. Prior to this I was oblivious with JavaFX relationship with GTK, apart from the various Gtk-WARNING when starting applications. Then I began to ponder, what does GTK do for JavaFX. What does GTK have to say for JavaFX (disregard any AWT/Swing and SWT) ? FX is not a GTK app from a rendering perspective. It is used for all needed interaction with the Windowing System and FX needs to co-exist with other libraries (eg SWT) using GTK3. The JEP for GTK3 support mentioned the motivation for it: * Active development is on GTK3 and GTK2 may not be available on Linux in the future lifetime of JDK 9/10/11. * Mixing of packages using different GTK versions causes application failures. They mention this problem affects applications when using Eclipse which are SWT-based. I tried running Eclipse with GTK3 enabled without problem. Other than that: Does it provide better graphics with GTK3 No. Does it provide different visual graphics with GTK3 No Does it provide better performance with GTK3 Unlikely Does it mean JavaFX supports GTK3 themes? If one have selected a desktop GTK theme could it be used in the JavaFX application for styling? No .. and no. Has Qt ever been a consideration for JavaFX instead of GTK? No. -phil.
JavaFX and it use of GTK3
Pardon me for asking this on the dev mailing list, but I wanted to get this directly from the source. I was glad to read that Java had gotten support for GTK3. Prior to this I was oblivious with JavaFX relationship with GTK, apart from the various Gtk-WARNING when starting applications. Then I began to ponder, what does GTK do for JavaFX. What does GTK have to say for JavaFX (disregard any AWT/Swing and SWT) ? The JEP for GTK3 support mentioned the motivation for it: * Active development is on GTK3 and GTK2 may not be available on Linux in the future lifetime of JDK 9/10/11. * Mixing of packages using different GTK versions causes application failures. They mention this problem affects applications when using Eclipse which are SWT-based. I tried running Eclipse with GTK3 enabled without problem. Other than that: Does it provide better graphics with GTK3 Does it provide different visual graphics with GTK3 Does it provide better performance with GTK3 Does it mean JavaFX supports GTK3 themes? If one have selected a desktop GTK theme could it be used in the JavaFX application for styling? Has Qt ever been a consideration for JavaFX instead of GTK?