Log Message: |
Code cleanup: Various changes to TextPane:
* Use the new Utils.checkNull method in a lot of places.
* Add a "checkDocumentExists()" method and use that for a common check.
* Add some explanatory text to several IllegalArgumentExceptions.
* Deal with all the various types of line endings when reading text
from a stream or file, and construct a canonical form of paragraph.
|