Index: src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
===================================================================
--- src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java	(revision 18324)
+++ src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java	(working copy)
@@ -16,7 +16,6 @@
 import javax.swing.JComponent;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
-import javax.swing.plaf.basic.BasicComboBoxEditor;
 
 import org.openstreetmap.josm.data.projection.CustomProjection;
 import org.openstreetmap.josm.data.projection.Projection;
@@ -26,7 +25,6 @@
 import org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator;
 import org.openstreetmap.josm.gui.widgets.HistoryComboBox;
 import org.openstreetmap.josm.gui.widgets.HtmlPanel;
-import org.openstreetmap.josm.gui.widgets.JosmTextField;
 import org.openstreetmap.josm.tools.GBC;
 import org.openstreetmap.josm.tools.ImageProvider;
 import org.openstreetmap.josm.tools.Logging;
@@ -52,7 +50,6 @@
 
     private static class PreferencePanel extends JPanel {
 
-        public JosmTextField input;
         private HistoryComboBox cbInput;
 
         PreferencePanel(String initialText, ActionListener listener) {
@@ -60,14 +57,8 @@
         }
 
         private void build(String initialText, final ActionListener listener) {
-            input = new JosmTextField(30);
             cbInput = new HistoryComboBox();
-            cbInput.setEditor(new BasicComboBoxEditor() {
-                @Override
-                protected JosmTextField createEditorComponent() {
-                    return input;
-                }
-            });
+            cbInput.getEditorComponent().setColumns(30);
             List<String> samples = Arrays.asList(
                     "+proj=lonlat +ellps=WGS84 +datum=WGS84 +bounds=-180,-90,180,90",
                     "+proj=tmerc +lat_0=0 +lon_0=9 +k_0=1 +x_0=3500000 +y_0=0 +ellps=bessel +nadgrids=BETA2007.gsb");
@@ -79,7 +70,7 @@
             final JLabel valStatus = new JLabel();
             valStatus.setVisible(false);
 
-            final AbstractTextComponentValidator val = new AbstractTextComponentValidator(input, false, false, false) {
+            final AbstractTextComponentValidator val = new AbstractTextComponentValidator(cbInput.getEditorComponent(), false, false, false) {
 
                 private String error;
 
@@ -97,7 +88,7 @@
                 public boolean isValid() {
                     try {
                         CustomProjection test = new CustomProjection();
-                        test.update(input.getText());
+                        test.update(cbInput.getEditorComponent().getText());
                     } catch (ProjectionConfigurationException ex) {
                         Logging.warn(ex);
                         error = ex.getMessage();
@@ -220,7 +211,7 @@
             throw new IllegalArgumentException("Unsupported panel: "+panel);
         }
         PreferencePanel prefPanel = (PreferencePanel) panel;
-        String pref = prefPanel.input.getText();
+        String pref = prefPanel.cbInput.getEditorComponent().getText();
         prefPanel.rememberHistory();
         return Collections.singleton(pref);
     }
