--- /home/cpdev/src/classpath/javax/swing/JTextField.java	2005-07-02 21:04:01.000000000 +0000
+++ javax/swing/JTextField.java	2005-06-30 05:35:10.000000000 +0000
@@ -47,8 +47,6 @@
 import java.beans.PropertyChangeListener;
 
 import javax.accessibility.AccessibleStateSet;
-import javax.swing.text.AttributeSet;
-import javax.swing.text.BadLocationException;
 import javax.swing.text.Document;
 import javax.swing.text.JTextComponent;
 import javax.swing.text.PlainDocument;
@@ -179,9 +177,6 @@
 
     if (text != null)
       setText(text);
-
-    // default value for alignment
-    align = LEADING;
   }
 
   /**
@@ -192,15 +187,7 @@
    */
   protected Document createDefaultModel()
   {
-    // subclassed to swallow newlines
-    return new PlainDocument() {
-        public void insertString(int offset, String str, AttributeSet a)
-          throws BadLocationException
-        {
-          if (str.indexOf('\n') == -1)
-            super.insertString(offset, str, a);
-        }
-      };
+    return new PlainDocument();
   }
 
   /**
