Changeset 3067 in osm for applications/editors/josm


Ignore:
Timestamp:
2007-05-30T19:02:33+02:00 (17 years ago)
Author:
christofd
Message:

reordered imports
fixed result list from resizing on click

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/namefinder/namefinder/PlaceSelection.java

    r2925 r3067  
    44
    55import java.awt.Component;
     6import java.awt.Dimension;
    67import java.awt.GridBagLayout;
    78import java.awt.event.ActionEvent;
    89import java.awt.event.ActionListener;
    9 import java.awt.event.MouseAdapter;
    10 import java.awt.event.MouseEvent;
    1110import java.io.InputStream;
    1211import java.io.InputStreamReader;
    1312import java.net.HttpURLConnection;
    1413import java.net.URL;
    15 import java.util.ArrayList;
    16 import java.util.List;
    1714
    1815import javax.swing.DefaultListCellRenderer;
    1916import javax.swing.DefaultListModel;
    2017import javax.swing.JButton;
    21 import javax.swing.JComponent;
    2218import javax.swing.JLabel;
    2319import javax.swing.JList;
     
    2622import javax.swing.JScrollPane;
    2723import javax.swing.JTextField;
    28 import javax.swing.ListCellRenderer;
    29 import javax.swing.ListSelectionModel;
    3024import javax.swing.event.ListSelectionEvent;
    3125import javax.swing.event.ListSelectionListener;
    3226
    3327import 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;
    3828import org.openstreetmap.josm.gui.download.DownloadDialog;
    3929import org.openstreetmap.josm.gui.download.DownloadSelection;
     
    170160                panel.add(searchTerm, GBC.std().fill(GBC.HORIZONTAL));
    171161                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());
    178169               
    179170                // when the button is clicked
Note: See TracChangeset for help on using the changeset viewer.