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
    String1String2String3

    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

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    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