Changeset 3067 in osm for applications/editors/josm
- Timestamp:
- 2007-05-30T19:02:33+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/namefinder/namefinder/PlaceSelection.java
r2925 r3067 4 4 5 5 import java.awt.Component; 6 import java.awt.Dimension; 6 7 import java.awt.GridBagLayout; 7 8 import java.awt.event.ActionEvent; 8 9 import java.awt.event.ActionListener; 9 import java.awt.event.MouseAdapter;10 import java.awt.event.MouseEvent;11 10 import java.io.InputStream; 12 11 import java.io.InputStreamReader; 13 12 import java.net.HttpURLConnection; 14 13 import java.net.URL; 15 import java.util.ArrayList;16 import java.util.List;17 14 18 15 import javax.swing.DefaultListCellRenderer; 19 16 import javax.swing.DefaultListModel; 20 17 import javax.swing.JButton; 21 import javax.swing.JComponent;22 18 import javax.swing.JLabel; 23 19 import javax.swing.JList; … … 26 22 import javax.swing.JScrollPane; 27 23 import javax.swing.JTextField; 28 import javax.swing.ListCellRenderer;29 import javax.swing.ListSelectionModel;30 24 import javax.swing.event.ListSelectionEvent; 31 25 import javax.swing.event.ListSelectionListener; 32 26 33 27 import org.openstreetmap.josm.Main; 34 import org.openstreetmap.josm.data.Bounds;35 import org.openstreetmap.josm.data.coor.LatLon;36 import org.openstreetmap.josm.data.osm.OsmPrimitive;37 import org.openstreetmap.josm.gui.OsmPrimitivRenderer;38 28 import org.openstreetmap.josm.gui.download.DownloadDialog; 39 29 import org.openstreetmap.josm.gui.download.DownloadSelection; … … 170 160 panel.add(searchTerm, GBC.std().fill(GBC.HORIZONTAL)); 171 161 panel.add(submitSearch, GBC.eol()); 172 173 174 GBC c = GBC.eol(); 175 c.gridwidth = 2; 176 panel.add(new JScrollPane(searchResultDisplay), c); 177 gui.tabpane.add(panel, "Places"); 162 163 GBC c = GBC.std().fill(); 164 JScrollPane scrollPane = new JScrollPane(searchResultDisplay); 165 panel.add(scrollPane, c); 166 gui.tabpane.add(panel, tr("Places")); 167 168 scrollPane.setPreferredSize(scrollPane.getPreferredSize()); 178 169 179 170 // when the button is clicked
Note:
See TracChangeset
for help on using the changeset viewer.