Changeset 11 in josm for src/org/openstreetmap/josm/actions/mapmode/MapMode.java
- Timestamp:
- 2005-10-04T20:36:42+02:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/mapmode/MapMode.java
r7 r11 12 12 13 13 import org.openstreetmap.josm.data.osm.DataSet; 14 import org.openstreetmap.josm.gui.Main; 14 15 import org.openstreetmap.josm.gui.MapFrame; 15 16 import org.openstreetmap.josm.gui.MapView; … … 45 46 */ 46 47 public MapMode(String name, String iconName, String tooltip, int mnemonic, MapFrame mapFrame) { 47 super(name, new ImageIcon( "images/mapmode/"+iconName+".png"));48 super(name, new ImageIcon(Main.class.getResource("/images/mapmode/"+iconName+".png"))); 48 49 putValue(MNEMONIC_KEY, mnemonic); 49 50 putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(mnemonic,0));
Note:
See TracChangeset
for help on using the changeset viewer.
