return new PlainDocument();
return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str.indexOf('\n') == -1) super.insertString(offset, str, a); } };
  protected Document createDefaultModel()  {    return new PlainDocument();  }