Hi everyone,
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;
import javax.swing.JOptionPane;
public class NewLine
{
public static void main(String[] args)
{
JOptionPane.showMessgeDialog(null, "hello")/n
("my name is: ")/n
("xxxx");
System.exit(0);
}
}
Thanks in advance.