Changeset 12280 in josm


Ignore:
Timestamp:
2017-05-30T18:49:42+02:00 (2 years ago)
Author:
Don-vip
Message:

drop remaining png extensions from few icons in java code so we can provide svg replacements in the future

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NoteInputDialog.java

    r12279 r12280  
    5656        contentPanel.add(scrollPane);
    5757        setContent(contentPanel, false);
    58         setButtonIcons(icon, ImageProvider.get("cancel.png"));
     58        setButtonIcons(icon, ImageProvider.get("cancel"));
    5959
    6060        showDialog();
  • trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AbstractListEditor.java

    r12279 r12280  
    3131        super(parent, title, tr("OK"), tr("Cancel"));
    3232        this.entry = entry;
    33         setButtonIcons("ok.png", "cancel.png");
     33        setButtonIcons("ok", "cancel");
    3434        setRememberWindowGeometry(getClass().getName() + ".geometry", WindowGeometry.centerInWindow(parent, new Dimension(500, 350)));
    3535    }
  • trunk/src/org/openstreetmap/josm/gui/preferences/advanced/PreferencesTable.java

    r12279 r12280  
    221221    private static boolean askAddSetting(JComponent gui, JPanel p) {
    222222        return new ExtendedDialog(gui, tr("Add setting"), tr("OK"), tr("Cancel"))
    223                 .setContent(p).setButtonIcons("ok.png", "cancel.png").showDialog().getValue() == 1;
     223                .setContent(p).setButtonIcons("ok", "cancel").showDialog().getValue() == 1;
    224224    }
    225225
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/LambertCC9ZonesProjectionChoice.java

    r12223 r12280  
    4444        LambertCC9CBPanel(String[] entries, int initialIndex, String label, ActionListener listener) {
    4545            super(entries, initialIndex, label, listener);
    46             this.add(new JLabel(ImageProvider.get("data/projection", "LambertCC9Zones.png")), GBC.eol().fill(GBC.HORIZONTAL));
     46            this.add(new JLabel(ImageProvider.get("data/projection", "LambertCC9Zones")), GBC.eol().fill(GBC.HORIZONTAL));
    4747            this.add(GBC.glue(1, 1), GBC.eol().fill(GBC.BOTH));
    4848        }
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/LambertProjectionChoice.java

    r12223 r12280  
    3939        LambertCBPanel(String[] entries, int initialIndex, String label, ActionListener listener) {
    4040            super(entries, initialIndex, label, listener);
    41             this.add(new JLabel(ImageProvider.get("data/projection", "Departements_Lambert4Zones.png")), GBC.eol().fill(GBC.HORIZONTAL));
     41            this.add(new JLabel(ImageProvider.get("data/projection", "Departements_Lambert4Zones")), GBC.eol().fill(GBC.HORIZONTAL));
    4242            this.add(GBC.glue(1, 1), GBC.eol().fill(GBC.BOTH));
    4343        }
Note: See TracChangeset for help on using the changeset viewer.