Changeset 470 in josm for trunk


Ignore:
Timestamp:
2007-11-27T02:43:15+01:00 (17 years ago)
Author:
framm
Message:
  • set Windows L+F as default when generating prefs under windows
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r442 r470  
    209209                properties.put("propertiesdialog.visible", "true");
    210210                properties.put("osm-server.url", "http://www.openstreetmap.org/api");
     211                if (System.getProperty("os.name").toUpperCase().indexOf("WINDOWS") == -1) {
     212                        properties.put("laf", "javax.swing.plaf.metal.MetalLookAndFeel");
     213                } else {
     214                        properties.put("laf", "javax.swing.plaf.windows.WindowsLookAndFeel");
     215                }
    211216                save();
    212217        }
Note: See TracChangeset for help on using the changeset viewer.