Java Input Dialog Box
Chapter:
Swing
Last Updated:
15-12-2016 15:37:03 UTC
Program:
/* ............... START ............... */
import javax.swing.JOptionPane;
public class JavaInputDialog {
public static void main(String args[]) {
String response = JOptionPane.showInputDialog("What is your first name?");
System.out.println(response);
}
}
/* ............... END ............... */
Output
Tags
Input Dialog Box, Java, Swing