JTextArea comp = (JTextArea)getComponent(); if (comp.getLineWrap()) { if (comp.getWrapStyleWord()) return new WrappedPlainView(elem, true); else return new WrappedPlainView(elem, false); } else
  public View create(Element elem)  {    return new PlainView(elem);  }