Ignore:
Timestamp:
2010-06-25T21:33:50+02:00 (14 years ago)
Author:
jttt
Message:

Adapt to latest josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputDialog.java

    r21169 r22018  
    1414import java.awt.Container;
    1515import java.awt.Dimension;
    16 import java.awt.FlowLayout;
    17 import java.awt.Frame;
     16import java.awt.GridBagConstraints;
    1817import java.awt.GridBagLayout;
    19 import java.awt.GridBagConstraints;
    20 import java.awt.GridLayout;
    2118import java.awt.event.ActionEvent;
    22 
    2319import java.util.TreeSet;
    2420
    2521import javax.swing.BoxLayout;
    26 import javax.swing.JButton;
    2722import javax.swing.JCheckBox;
    2823import javax.swing.JLabel;
    29 import javax.swing.JOptionPane;
    3024import javax.swing.JPanel;
    3125import javax.swing.JTextArea;
    3226import javax.swing.JTextField;
    33 import javax.swing.SwingUtilities;
    3427
    3528import org.openstreetmap.josm.Main;
     
    3730import org.openstreetmap.josm.data.osm.Way;
    3831import org.openstreetmap.josm.gui.ExtendedDialog;
    39 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox; 
     32import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox;
    4033import org.openstreetmap.josm.tools.GBC;
    4134
     
    8376
    8477        HouseNumberInputHandler inputHandler;
    85        
     78
    8679    /**
    8780     * @param street If street is not null, we assume, the name of the street to be fixed
     
    120113                this.interpolation.addItemListener(this.inputHandler);
    121114    }
    122        
     115
    123116    /**
    124117     * This method initializes jContentPane
     
    154147            messageLabel.setEditable(false);
    155148            messageLabel.setFocusable(false); // Needed so that lowest number can have focus immediately
    156            
     149
    157150            interpolationLabel = new JLabel();
    158151            interpolationLabel.setText(tr("Interpolation"));
     
    177170                        c.gridwidth = GridBagConstraints.REMAINDER;
    178171            inputPanel.add(messageLabel, c);
    179            
     172
    180173            inputPanel.add(loLabel, GBC.std().insets(3,3,0,0));
    181174            inputPanel.add(getLo(), GBC.eol().fill(GBC.HORIZONTAL).insets(5,3,0,0));
     
    201194     * Overrides the default actions. Will not close the window when upload trace is clicked
    202195     */
    203     @Override protected void buttonAction(final ActionEvent evt) {
     196    @Override protected void buttonAction(int buttonIndex, final ActionEvent evt) {
    204197        String a = evt.getActionCommand();
    205198        this.inputHandler.actionPerformed(evt);
Note: See TracChangeset for help on using the changeset viewer.