Re: New line in a JTextArea (student learning here)



Andrew Thompson wrote:
On Jan 29, 11:12 am, Farcus Pottysqirt <where_is_my_...@xxxxxxxxxx> wrote:
...
..Is the new-line
character represented differently on a different platform?

Sure is. Best to initilaise the line feed character as..
System.getProperty( "line.separator" );

Andrew T.


Andrew:

Do you know an OS that uses a different line feed that runs Java?

--

Knute Johnson
email s/nospam/knute/
.



Relevant Pages

  • Re: make a file with some path
    ... ...to ensure the file separator is correct for the platform. ... Andrew Thompson ... http://www.PhySci.org/ Open-source software suite ...
    (comp.lang.java.programmer)
  • Re: New line in a JTextArea (student learning here)
    ... Andrew Thompson wrote: ... character represented differently on a different platform? ... Best to initilaise the line feed character as.. ...
    (comp.lang.java.help)
  • Re: how to detect platform?
    ... Sub: Re: how to detect platform? ... Andrew Thompson ... Beats A Hard Kick In The Face ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: JMenu/JPopupMenu disappear on mouseEntered?
    ... Andrew Thompson wrote: ... don't be so quick to blame the platform. ... the test involved trying it without resizing the window. ...
    (comp.lang.java.programmer)
  • Re: JMenu/JPopupMenu disappear on mouseEntered?
    ... "Sudsy" wrote in message ... > Andrew Thompson wrote: ... don't be so quick to blame the platform. ... Never let the truth get in the way of a ...
    (comp.lang.java.programmer)