JOptionPane display on seperate lines
I am trying to display an output message using JOptionPane. I want to display the message on a number of lines. I have tried numerous ways and can't seem to find a solution. If anyone could give me a simple example or provide a link to where I could find a solution, it would be greatly appreciated.
Here's an example of what i'm trying to do;
public class NewLine
public static void main(String args)
("my name is: ")/n
Thanks in advance.
Re: JOptionPane display on seperate lines
What happens if you put all of the message you want to display within one pair of "s? I see 3 pairs of "s in your code.