Ignore:
Timestamp:
2010-01-10T14:05:21+01:00 (14 years ago)
Author:
stoecker
Message:

fixed image handling

Location:
applications/editors/josm/plugins/openstreetbugs
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java

    r19361 r19363  
    4848import org.openstreetmap.josm.plugins.osb.api.DownloadAction;
    4949import org.openstreetmap.josm.plugins.osb.gui.OsbDialog;
     50import org.openstreetmap.josm.tools.ImageProvider;
    5051
    5152/**
     
    210211
    211212    public static ImageIcon loadIcon(String name) {
    212         URL url = OsbPlugin.class.getResource("/images/".concat(name));
    213         if(url != null) {
    214             return new ImageIcon(url);
    215         } else  {
    216             return new ImageIcon();
    217         }
     213        return ImageProvider.get(name);
    218214    }
    219215
Note: See TracChangeset for help on using the changeset viewer.