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?

Oh hey I just didi it. So Forget this thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.