> If you give some importance to portability (wich could be the case since
> you're using Java), this is better:
>
> ta.append("row1" + System.getProperty("line.separator")) ;
No, not at all. line.separator identifies the operating system's line
separator, not the line separator used inside of Java. Java always uses
just '\n', except in I/O methods like like BufferedReader.readLine(),
which are supposed to to the necessary conversion.
If you append System.getProperty("line.separator") you in fact make your
application less portable, not more.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
znôrt - 25 Apr 2005 19:08 GMT
> Java always uses
> just '\n', except in I/O methods like like
> BufferedReader.readLine(), which are supposed to to the
> necessary conversion.
Ok, I missed that, thanks. I thought '\n' was "generally acceptable" but not
the canonical thing. Good so, I guess every imaginable artifact you cuould
implent a VM for should have something you can map '\n' to.
> If you append System.getProperty("line.separator") you in
> fact make your application less portable, not more.
Yes, too bad! 8-o
znôrt