Changeset 11 in josm for src/org/openstreetmap
- Timestamp:
- 2005-10-04T20:36:42+02:00 (19 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/ExitAction.java
r1 r11 6 6 import javax.swing.AbstractAction; 7 7 import javax.swing.ImageIcon; 8 9 import org.openstreetmap.josm.gui.Main; 8 10 9 11 /** … … 18 20 */ 19 21 public ExitAction() { 20 super("Exit", new ImageIcon( "images/exit.png"));22 super("Exit", new ImageIcon(Main.class.getResource("/images/exit.png"))); 21 23 putValue(MNEMONIC_KEY, KeyEvent.VK_X); 22 24 } -
src/org/openstreetmap/josm/actions/OpenGpxAction.java
r9 r11 32 32 */ 33 33 public OpenGpxAction() { 34 super("Open GPX", new ImageIcon( "images/opengpx.png"));34 super("Open GPX", new ImageIcon(Main.class.getResource("/images/opengpx.png"))); 35 35 putValue(MNEMONIC_KEY, KeyEvent.VK_O); 36 36 } -
src/org/openstreetmap/josm/actions/PreferencesAction.java
r1 r11 7 7 import javax.swing.ImageIcon; 8 8 9 import org.openstreetmap.josm.gui.Main; 9 10 import org.openstreetmap.josm.gui.PreferenceDialog; 10 11 … … 20 21 */ 21 22 public PreferencesAction() { 22 super("Preferences", new ImageIcon( "images/preference.png"));23 super("Preferences", new ImageIcon(Main.class.getResource("/images/preference.png"))); 23 24 putValue(MNEMONIC_KEY, KeyEvent.VK_P); 24 25 } -
src/org/openstreetmap/josm/actions/SaveGpxAction.java
r10 r11 28 28 */ 29 29 public SaveGpxAction() { 30 super("Save GPX", new ImageIcon( "images/savegpx.png"));30 super("Save GPX", new ImageIcon(Main.class.getResource("/images/savegpx.png"))); 31 31 putValue(MNEMONIC_KEY, KeyEvent.VK_S); 32 32 } -
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)); -
src/org/openstreetmap/josm/data/osm/visitor/SelectionComponentVisitor.java
r8 r11 13 13 import org.openstreetmap.josm.data.osm.Node; 14 14 import org.openstreetmap.josm.data.osm.Track; 15 import org.openstreetmap.josm.gui.Main; 15 16 16 17 /** … … 37 38 public void visit(Key k) { 38 39 name = k.name; 39 icon = new ImageIcon( "images/data/key.png");40 icon = new ImageIcon(Main.class.getResource("/images/data/key.png")); 40 41 } 41 42 -
src/org/openstreetmap/josm/gui/MapView.java
r9 r11 45 45 public class AutoScaleAction extends AbstractAction { 46 46 public AutoScaleAction() { 47 super("Auto Scale", new ImageIcon( "images/autoscale.png"));47 super("Auto Scale", new ImageIcon(Main.class.getResource("/images/autoscale.png"))); 48 48 putValue(MNEMONIC_KEY, KeyEvent.VK_A); 49 49 } -
src/org/openstreetmap/josm/gui/PreferenceDialog.java
r6 r11 43 43 class OkAction extends AbstractAction { 44 44 public OkAction() { 45 super("Ok", new ImageIcon( "images/ok.png"));45 super("Ok", new ImageIcon(Main.class.getResource("/images/ok.png"))); 46 46 putValue(MNEMONIC_KEY, KeyEvent.VK_ENTER); 47 47 } -
src/org/openstreetmap/josm/gui/dialogs/SelectionListDialog.java
r8 r11 71 71 getContentPane().add(new JScrollPane(displaylist), BorderLayout.CENTER); 72 72 73 JButton button = new JButton("Select", new ImageIcon( "images/mapmode/selection.png"));73 JButton button = new JButton("Select", new ImageIcon(Main.class.getResource("/images/mapmode/selection.png"))); 74 74 button.addActionListener(new ActionListener(){ 75 75 public void actionPerformed(ActionEvent e) { -
src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r8 r11 28 28 public ToggleDialog(String title, String name, String iconName, int mnemonic, String tooltip) { 29 29 super(Main.main, title, false); 30 putValue(SMALL_ICON, new ImageIcon( "images/dialogs/"+iconName+".png"));30 putValue(SMALL_ICON, new ImageIcon(Main.class.getResource("/images/dialogs/"+iconName+".png"))); 31 31 putValue(NAME, name); 32 32 putValue(MNEMONIC_KEY, mnemonic);
Note:
See TracChangeset
for help on using the changeset viewer.