Changeset 11 in josm for src/org/openstreetmap/josm/data


Ignore:
Timestamp:
2005-10-04T20:36:42+02:00 (15 years ago)
Author:
imi
Message:

changed direct resource access to Class.getResource()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/data/osm/visitor/SelectionComponentVisitor.java

    r8 r11  
    1313import org.openstreetmap.josm.data.osm.Node;
    1414import org.openstreetmap.josm.data.osm.Track;
     15import org.openstreetmap.josm.gui.Main;
    1516
    1617/**
     
    3738        public void visit(Key k) {
    3839                name = k.name;
    39                 icon = new ImageIcon("images/data/key.png");
     40                icon = new ImageIcon(Main.class.getResource("/images/data/key.png"));
    4041        }
    4142
Note: See TracChangeset for help on using the changeset viewer.