Ignore:
Timestamp:
2006-01-19T08:22:18+01:00 (19 years ago)
Author:
imi
Message:
  • renamed EPSG projection
  • started WorldChooser in download menu (not finished)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/actions/DownloadAction.java

    r40 r41  
    11package org.openstreetmap.josm.actions;
    22
     3import java.awt.Dimension;
    34import java.awt.GridBagLayout;
    45import java.awt.GridLayout;
     
    3031import org.openstreetmap.josm.gui.MapFrame;
    3132import org.openstreetmap.josm.gui.MapView;
     33import org.openstreetmap.josm.gui.WorldChooser;
    3234import org.openstreetmap.josm.gui.BookmarkList.Bookmark;
    3335import org.openstreetmap.josm.gui.layer.Layer;
     
    6062        public void actionPerformed(ActionEvent e) {
    6163                JPanel dlg = new JPanel(new GridBagLayout());
     64               
     65                WorldChooser wc = new WorldChooser();
     66                dlg.add(wc, GBC.eop());
     67
    6268                dlg.add(new JLabel("Bounding box"), GBC.eol());
    63 
    6469                dlg.add(new JLabel("min lat"), GBC.std().insets(10,0,5,0));
    6570                dlg.add(latlon[0], GBC.std());
     
    139144                dlg.add(buttons, GBC.eop().fill(GBC.HORIZONTAL));
    140145               
     146                Dimension d = dlg.getPreferredSize();
     147                wc.setPreferredSize(new Dimension(d.width, d.width/2));
     148               
    141149                int r = JOptionPane.showConfirmDialog(Main.main, dlg, "Choose an area",
    142150                                JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
Note: See TracChangeset for help on using the changeset viewer.