Ignore:
Timestamp:
2010-10-27T22:17:42+02:00 (14 years ago)
Author:
oliverw
Message:

Use JDialog as base class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/AddressEdit/src/org/openstreetmap/josm/plugins/addressEdit/gui/AddressEditDialog.java

    r23879 r23880  
    2929
    3030import javax.swing.JButton;
    31 import javax.swing.JFrame;
     31import javax.swing.JDialog;
    3232import javax.swing.JLabel;
     33import javax.swing.JOptionPane;
    3334import javax.swing.JPanel;
    3435import javax.swing.JScrollPane;
     
    4243import org.openstreetmap.gui.jmapviewer.JMapViewer;
    4344import org.openstreetmap.gui.jmapviewer.MapMarkerDot;
     45import org.openstreetmap.josm.Main;
    4446import org.openstreetmap.josm.data.osm.Node;
    4547import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    5557import org.openstreetmap.josm.plugins.addressEdit.StringUtils;
    5658
    57 public class AddressEditDialog extends JFrame implements ActionListener, ListSelectionListener, IAddressEditContainerListener {
     59public class AddressEditDialog extends JDialog implements ActionListener, ListSelectionListener, IAddressEditContainerListener {
    5860        private static final String UNRESOLVED_HEADER_FMT = tr("Unresolved Addresses (%d)");
    5961        private static final String STREET_HEADER_FMT = tr("Streets (%d)");
     
    8284         */
    8385        public AddressEditDialog(AddressEditContainer addressEditContainer) throws HeadlessException  {
    84                 super(tr("Edit Addresses"));
     86                super(JOptionPane.getFrameForComponent(Main.parent), tr("Edit Addresses"), false);
    8587       
    8688                this.editContainer = addressEditContainer;
Note: See TracChangeset for help on using the changeset viewer.