Changeset 41 in josm for src/org/openstreetmap/josm/actions/DownloadAction.java
- Timestamp:
- 2006-01-19T08:22:18+01:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/DownloadAction.java
r40 r41 1 1 package org.openstreetmap.josm.actions; 2 2 3 import java.awt.Dimension; 3 4 import java.awt.GridBagLayout; 4 5 import java.awt.GridLayout; … … 30 31 import org.openstreetmap.josm.gui.MapFrame; 31 32 import org.openstreetmap.josm.gui.MapView; 33 import org.openstreetmap.josm.gui.WorldChooser; 32 34 import org.openstreetmap.josm.gui.BookmarkList.Bookmark; 33 35 import org.openstreetmap.josm.gui.layer.Layer; … … 60 62 public void actionPerformed(ActionEvent e) { 61 63 JPanel dlg = new JPanel(new GridBagLayout()); 64 65 WorldChooser wc = new WorldChooser(); 66 dlg.add(wc, GBC.eop()); 67 62 68 dlg.add(new JLabel("Bounding box"), GBC.eol()); 63 64 69 dlg.add(new JLabel("min lat"), GBC.std().insets(10,0,5,0)); 65 70 dlg.add(latlon[0], GBC.std()); … … 139 144 dlg.add(buttons, GBC.eop().fill(GBC.HORIZONTAL)); 140 145 146 Dimension d = dlg.getPreferredSize(); 147 wc.setPreferredSize(new Dimension(d.width, d.width/2)); 148 141 149 int r = JOptionPane.showConfirmDialog(Main.main, dlg, "Choose an area", 142 150 JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
Note:
See TracChangeset
for help on using the changeset viewer.