Adapter for a swing Document to act like an OutputStream.
All "write" calls simply append to the document.
Additionally there is simple color and attribute support,
such as "append in red".
All uses of this adapter must be done within the
swing thread (or use swing's "invokeLater(..)").
I'm surprised that something like this isn't included in
the JDK. |