javax.swing.TextComponent getDocument to scala.swing.document.

peer.getDocument() replaced with document member function in scala.swing.TextComponent.
Document should be wrapped so that this reads `output.document.length`