I’m loading string resources from a text file (so as to not have to rebuild if I need to change them) which when appended to the JTextArea displays as “Some sentence,\n on the same line.”
When I hard code the exact same String, it appends fine.
Where could this be going wrong?
What does your text file look like? If “\n” is in the text file it’s probably copied literally, i.e. it’s not treated as an escape sequence.
EDIT: You could try reading the text file as a property file and automatically have e.g. \n parsed a newline.