5 ms·
I don't know about JavaFX, but I'm almost certain Swing uses its own UI components and doesn't use the native GTK ones, unless that has changed very recently.
by RussianCow 9y ago
I don't know about JavaFX, but I'm almost certain Swing uses its own UI components and doesn't use the native GTK ones, unless that has changed very recently.
- pjmlp 9y agoIt changed when Java moved from AWT to Swing. https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html https://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/... --------------------------------------------------------- |Platform | Look and Feel | --------------------------------------------------------- |Solaris, Linux with GTK+ 2.2 or later | GTK+ | |Other Solaris, Linux | Motif | |IBM UNIX | IBM* | |HP UX | HP* | |Classic Windows | Windows | |Windows XP | Windows XP | |Windows Vista | Windows Vista | |Macintosh | Macintosh* | --------------------------------------------------------- Apparently not many bother to learn how to take advantage of Swing APIs.
- LukeShu 9y agoThat's what `SystemLookAndFeel` is, which is not the default Look and Feel in the JRE; `MetalLookAndFeel` is, which is what people think of when they think of Java applications. (1) Most Java applications don't set the LAF, (2) most distros don't set the default LAF (in /etc/profile.d/), and (3) most users don't know to set the default LAF. And saying all applications should set it to SystemLookAndFeel would be wrong, as they should respect the user's settings if they exist. _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
- pjmlp 9y agoHence my remark, > Apparently not many bother to learn how to take advantage of Swing APIs.