diff --git a/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java b/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
index e4db57d1d0..6dfc53eb17 100644
|
a
|
b
|
import org.openstreetmap.josm.data.projection.Projection;
|
| 23 | 23 | import org.openstreetmap.josm.data.projection.ProjectionConfigurationException; |
| 24 | 24 | import org.openstreetmap.josm.data.projection.Projections; |
| 25 | 25 | import org.openstreetmap.josm.gui.ExtendedDialog; |
| | 26 | import org.openstreetmap.josm.gui.tagging.ac.AutoCompTextField; |
| 26 | 27 | import org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator; |
| 27 | 28 | import org.openstreetmap.josm.gui.widgets.HistoryComboBox; |
| 28 | 29 | import org.openstreetmap.josm.gui.widgets.HtmlPanel; |
| … |
… |
public class CustomProjectionChoice extends AbstractProjectionChoice implements
|
| 52 | 53 | |
| 53 | 54 | private static class PreferencePanel extends JPanel { |
| 54 | 55 | |
| 55 | | public JosmTextField input; |
| | 56 | public AutoCompTextField<String> input; |
| 56 | 57 | private HistoryComboBox cbInput; |
| 57 | 58 | |
| 58 | 59 | PreferencePanel(String initialText, ActionListener listener) { |
| … |
… |
public class CustomProjectionChoice extends AbstractProjectionChoice implements
|
| 60 | 61 | } |
| 61 | 62 | |
| 62 | 63 | private void build(String initialText, final ActionListener listener) { |
| 63 | | input = new JosmTextField(30); |
| | 64 | input = new AutoCompTextField<>(30); |
| 64 | 65 | cbInput = new HistoryComboBox(); |
| 65 | 66 | cbInput.setEditor(new BasicComboBoxEditor() { |
| 66 | 67 | @Override |