javax.swing.JOptionPane.showMessageDialog(null,"Welcome to be wonderful world of Java!","Welcome,new programmer",javax.swing.JOptionPane.PLAIN_MESSAGE);

解决方案 »

  1.   

    javax.swing.JOptionPane.showMessageDialog(null,"Welcome to be wonderful world of Java!","Welcome,new programmer",javax.swing.JOptionPane.PLAIN_MESSAGE);
      

  2.   

    import java.awt.*;
    import javax.swing.*;
    u forget to import these two package in ur program
    and u make a mistake of spelling
    should be JOptionPane not JOptionpane
      

  3.   

    import javax.swing.*;public class Welcome
    {
        public static void main(String args[])
        {
              JOptionPane.showMessageDialog(
                null,
                "Welcome to be wonderful world of Java!",
                "Welcome,new programmer",
                JOptionPane.PLAIN_MESSAGE);
              System.exit(0);
        }}