PlainDocument doc = new PlainDocument(); doc.putProperty("filterNewlines", Boolean.TRUE); return doc;
return new PlainDocument();
  protected Document createDefaultModel()  {    PlainDocument doc = new PlainDocument();    doc.putProperty("filterNewlines", Boolean.TRUE);    return doc;  }