Changeset 29187 in osm for applications
- Timestamp:
- 2013-01-11T09:43:32+01:00 (12 years ago)
- Location:
- applications/viewer/jmapviewer
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r29173 r29187 144 144 int size = 18; 145 145 try { 146 ImageIcon icon = new ImageIcon( getClass().getResource("images/plus.png"));146 ImageIcon icon = new ImageIcon(JMapViewer.class.getResource("images/plus.png")); 147 147 zoomInButton = new JButton(icon); 148 148 } catch (Exception e) { … … 160 160 add(zoomInButton); 161 161 try { 162 ImageIcon icon = new ImageIcon( getClass().getResource("images/minus.png"));162 ImageIcon icon = new ImageIcon(JMapViewer.class.getResource("images/minus.png")); 163 163 zoomOutButton = new JButton(icon); 164 164 } catch (Exception e) { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java
r28639 r29187 29 29 30 30 import org.openstreetmap.gui.jmapviewer.Coordinate; 31 import org.openstreetmap.gui.jmapviewer.JMapViewer; 31 32 import org.w3c.dom.Document; 32 33 import org.w3c.dom.Node; … … 175 176 public Image getAttributionImage() { 176 177 try { 177 return ImageIO.read( getClass().getResourceAsStream("/org/openstreetmap/gui/jmapviewer/images/bing_maps.png"));178 return ImageIO.read(JMapViewer.class.getResourceAsStream("images/bing_maps.png")); 178 179 } catch (IOException e) { 179 180 return null;
Note:
See TracChangeset
for help on using the changeset viewer.