// property laf = "crossplatform", "system", "gtk", "metal" or "mac"
// If not set (or chosen laf fails), use the normal SystemLaF and if on Mac,
// try Quaqua/Vaqua.
- String laf = System.getProperty("laf", "none");
+ String lafProp = System.getProperty("laf");
+ String lafSetting = Cache.getDefault("PREFERRED_LAF", null);
+ String laf = "none";
+ if (lafProp != null) {
+ laf = lafProp;
+ } else if (lafSetting != null) {
+ laf = lafSetting;
+ }
boolean lafSet = false;
switch (laf)
{