Is Java System Property "swing.defaultlaf" actually referenced in source?
Ludwig, Mark
ludwig.mark at siemens.com
Thu Jun 19 18:04:00 UTC 2025
Greetings,
We are in the process of (finally) completing a migration from AWT-based windows and dialogs to Swing-based that was started in the 1990s.
Testing the external Swing controls on Linux, we find nothing seems to happen as a result of setting the "swing.defaultlaf" System Property. This is documented in multiple places - at least the javax.swing.UIManager doc, and the How to Set the Look and Feel tutorial (and is mentioned in https://bugs.openjdk.org/browse/JDK-8159164).
We find the "swing.systemlaf" System Property is effective in changing the returned value from UIManager.getSystemLookAndFeelClassName(), but does not by itself change the look-and-feel -- only with something like UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()), which is documented.
We would appreciate clarity on this discrepancy regarding the "default" look-and-feel for Swing on Linux.
Thanks,
Mark Ludwig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20250619/8247ece9/attachment.htm>
More information about the client-libs-dev
mailing list