This is my code:
import javax.swing.*;
public class Two
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null, "Computers, computers everywhere\n As far as I can see\n I really , really like these things,\n Oh joy, oh joy form me!" JOptionPane.WARNING_MESSAGE);
}
}
I am trying to make the text appear in a warning messagebox, but right now I'm getting an error "')' expected". I've no idea how to make the message appear in the WARNING MESSAGEbox.
Also I would like to make WARNING as the title of the warningbox. How should I do that?