Changeset 4417 in osm for applications
- Timestamp:
- 2007-09-02T20:26:53+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/mappaint/src/mappaint/ElemStyleHandler.java
r3638 r4417 114 114 try { 115 115 URL path = getClass().getResource("/standard/icons/"+atts.getValue(count)); 116 curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path)); 116 if(path == null) { 117 /* icon not found, using default */ 118 System.out.println("Mappaint: Icon " + atts.getValue(count) + " not found, using default icon"); 119 path = getClass().getResource("/standard/icons/misc/no_icon.png"); 120 curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path)); 121 } else { 122 curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path)); 123 } 117 124 } 118 125 catch (Exception e){ 119 126 URL path = getClass().getResource("/standard/icons/amenity.png"); 120 127 curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path)); 121 122 128 } 123 129 }
Note:
See TracChangeset
for help on using the changeset viewer.