Changeset 2709 in josm


Ignore:
Timestamp:
2009-12-30T01:02:31+01:00 (15 years ago)
Author:
stoecker
Message:

minor cleanup

File:
1 edited

Legend:

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

    r2708 r2709  
    309309        try {
    310310            String defaultlaf = platform.getDefaultStyle();
     311            String laf = Main.pref.get("laf", defaultlaf);
    311312            try {
    312                 String laf = Main.pref.get("laf", defaultlaf);
    313                 if(laf != null && laf.length() > 0) {
    314                     UIManager.setLookAndFeel(laf);
    315                 }
     313                UIManager.setLookAndFeel(laf);
    316314            }
    317315            catch (final java.lang.ClassNotFoundException e) {
    318                 System.out.println("Look and Feel not found: " + Main.pref.get("laf"));
     316                System.out.println("Look and Feel not found: " + laf);
    319317                Main.pref.put("laf", defaultlaf);
    320318            }
    321319            catch (final javax.swing.UnsupportedLookAndFeelException e) {
    322                 System.out.println("Look and Feel not supported: " + Main.pref.get("laf"));
     320                System.out.println("Look and Feel not supported: " + laf);
    323321                Main.pref.put("laf", defaultlaf);
    324322            }
Note: See TracChangeset for help on using the changeset viewer.