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

peer.getDocument() replaced with document member function in scala.swing.TextComponent.
There is a lot of wrapper work to be done.  Table has at least one model 
that needs this treatment and probably more.  How does the work get 
allocated among the contributors?

On 10/20/2014 06:16 AM, Andy Hicks wrote:
>
> In 
> examples/src/main/scala/scala/swing/examples/tutorials/components/ListSelectionDemo.scala:
>
> > +      val firstIndex = list.selection.leadIndex
> > +      val lastIndex = list.selection.anchorIndex // anchor = last?
> > +      val isAdjusting = list.selection.adjusting
> > +      output.append("Event for indexes " + firstIndex + " - " + lastIndex +
> > +          "; isAdjusting is " + isAdjusting + "; selected indexes:")
> > +      if (list.selection.indices.isEmpty) {
> > +        output.append(" <none>")
> > +      }
> > +      else {
> > +        // Find out which indexes are selected.
> > +        for (i <- list.selection.indices) {
> > +          output.append(" " + i)
> > +        }
> > +      }
> > +      output.append("\n")
> > +      output.caret.position = output.document.getLength()
>
> Document should be wrapped so that this reads |output.document.length|
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/scala/scala-swing/pull/26/files#r19083174>.
>