I was writing an applet before and was displaying information in a JOptionPane. Useing \n, I was able to make the information display multilined like this:
Name1
Grade1
Name2
Grade2
etc.
I unfortunately had to change my code from an applet to a JFrame and subsiquently my Labels to JLabels. Most of my code remains the same. However, ow when I display the information in the JOptionPane, it appears like this:
Name1 Grade1 Name2 Grade2 etc.
How do I make a multiline JLabel to print out in a JOptionPane?