Changeset 29187 in osm for applications


Ignore:
Timestamp:
2013-01-11T09:43:32+01:00 (12 years ago)
Author:
the111
Message:

Fix #josm8342 - some image references are package dependent

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  
    144144        int size = 18;
    145145        try {
    146             ImageIcon icon = new ImageIcon(getClass().getResource("images/plus.png"));
     146            ImageIcon icon = new ImageIcon(JMapViewer.class.getResource("images/plus.png"));
    147147            zoomInButton = new JButton(icon);
    148148        } catch (Exception e) {
     
    160160        add(zoomInButton);
    161161        try {
    162             ImageIcon icon = new ImageIcon(getClass().getResource("images/minus.png"));
     162            ImageIcon icon = new ImageIcon(JMapViewer.class.getResource("images/minus.png"));
    163163            zoomOutButton = new JButton(icon);
    164164        } catch (Exception e) {
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java

    r28639 r29187  
    2929
    3030import org.openstreetmap.gui.jmapviewer.Coordinate;
     31import org.openstreetmap.gui.jmapviewer.JMapViewer;
    3132import org.w3c.dom.Document;
    3233import org.w3c.dom.Node;
     
    175176    public Image getAttributionImage() {
    176177        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"));
    178179        } catch (IOException e) {
    179180            return null;
Note: See TracChangeset for help on using the changeset viewer.