Re: JTexPane: Cross-platform chaos



Wired Earp <wiredearp@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> and I have loads of dependant application code prepared already, so I would
> *really* appreciate it if you could look it over and maybe come up with a
> hint. Here's the source code in txt-format:
>
> <url:http://www.wunderbyte.com/editorapplet/EditorTextPane.txt>


Do not use getText() (which returns in platform- etc. specific text), but
getDocument().getText() (which always uses '\n' for newline, and which caret
and selection positions refer to).


Christian
.