I have a method which returns a string that is formatted like so:
myString += "1. Hello\n" +
"2. Goodbye\n";
I am attempting to display it as a JLabel but it is coming out
1. Hello 2. Goodbye
Is there a way to display the string with the newlines besides formatting it with HTML or is there another outlet to display the information correctly besides JLabel?