Pretty easy Java question.

Discussion in 'OT Technology' started by Ben Fong-Torres, Dec 5, 2003.

  1. If I have an array of strings, how can I put those strings into a JTextArea so that it would come out like this:

    String 1
    String 2
    String 3

    instead of

    What method can I use to make the JTextArea start a new line instead of just JTextArea.append(String)?

    Thanks for any help guys.
  2. SLED

    SLED build an idiot proof device and someone else will

    Sep 20, 2001
    Likes Received:
    AZ, like a bauce!
    i believe you can concatenate the string value "\n" in java, which will give you a new line
  3. Wow, brilliant, thank you very much.

Share This Page