package class_10_04_2014;

import javax.swing.JOptionPane;

public class Driver {

	public static void main(String[] args) {
		/* the method showMessageDialog of the JOptionPane class will
		 * display a message to the user using a Java GUI instead of
		 * the console
		 */
		
		// For now, just use null for the first parameter
		JOptionPane.showMessageDialog(null, "This is the message", 
				"This is the title", JOptionPane.INFORMATION_MESSAGE);
		
		/* the method 
		 * 
		 */
		String answer = 
				JOptionPane.showInputDialog(null, "This is the prompt", 
				"This is the title, like 'Enter value of age'",
				JOptionPane.QUESTION_MESSAGE);
		System.out.println(answer);
	}

}
