import javax.swing.JOptionPane;
public class JOptionPane_Input_Test {
  public static void main(String[] args)  {
    String data = 
            JOptionPane.showInputDialog(null, "What is your name?");
    JOptionPane.showMessageDialog(null, "Your name is " + data);
   

    data = JOptionPane.showInputDialog(null, "Divided By Zero\n"+
             "Press \"Y\" to continue", "^-^- Error Message -^-^",
             JOptionPane.ERROR_MESSAGE);


    data = JOptionPane.showInputDialog(null, "Press \"Y\" to continue",
            "^-^- Information Message -^-^",
            JOptionPane.INFORMATION_MESSAGE);


    data = JOptionPane.showInputDialog(null, "Press \"Y\" to continue",
            "^-^- Plain Message -^-^",JOptionPane.PLAIN_MESSAGE);

    data = JOptionPane.showInputDialog(null, "Continue ? >> Press \"Y\"",
            "^-^- Question Message -^-^ ", JOptionPane.QUESTION_MESSAGE);
        
        
    data = JOptionPane.showInputDialog(null, "Variable is not used\n"+
            "Press \"Y\" to continue","^-^- Warning Message -^-^ ",
            JOptionPane.WARNING_MESSAGE);    

  }
}