Ignore:
Timestamp:
2009-08-30T19:07:24+02:00 (15 years ago)
Author:
Gubaer
Message:

removed OptionPaneUtil
cleanup of deprecated Layer API
cleanup of deprecated APIs in OsmPrimitive and Way
cleanup of imports

File:
1 edited

Legend:

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

    r1956 r2017  
    5959import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;
    6060import org.openstreetmap.josm.gui.MapView;
    61 import org.openstreetmap.josm.gui.OptionPaneUtil;
    6261import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
    6362import org.openstreetmap.josm.gui.dialogs.LayerListPopup;
     
    135134                    group.setSelected(r[0].getModel(), true);
    136135                }
    137                 int answer = OptionPaneUtil.showConfirmationDialog(Main.parent, panel,
     136                int answer = JOptionPane.showConfirmDialog(Main.parent, panel,
    138137                        tr("Select line drawing options"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
    139138                switch (answer) {
     
    159158                JColorChooser c = new JColorChooser(getColor(getName()));
    160159                Object[] options = new Object[] { tr("OK"), tr("Cancel"), tr("Default") };
    161                 int answer = OptionPaneUtil.showOptionDialog(
     160                int answer = JOptionPane.showOptionDialog(
    162161                        Main.parent,
    163162                        c,
     
    165164                        JOptionPane.OK_CANCEL_OPTION,
    166165                        JOptionPane.PLAIN_MESSAGE,
     166                        null,
    167167                        options, options[0]
    168168                );
     
    782782            msg.add(maxRect, GBC.eol());
    783783
    784             int ret = OptionPaneUtil.showConfirmationDialog(
     784            int ret = JOptionPane.showConfirmDialog(
    785785                    Main.parent,
    786786                    msg,
     
    880880
    881881            if (toDownload.size() > 1) {
    882                 ret = OptionPaneUtil.showConfirmationDialog(
     882                ret = JOptionPane.showConfirmDialog(
    883883                        Main.parent,
    884884                        msg,
     
    970970        }
    971971        if (firstTime < 0.0) {
    972             OptionPaneUtil.showMessageDialog(
     972            JOptionPane.showMessageDialog(
    973973                    Main.parent,
    974974                    tr("No GPX track available in layer to associate audio with."),
Note: See TracChangeset for help on using the changeset viewer.