String input=
JOptionPane.showInputDialog(null,
"Enter an input",
"Input Dialog Demo",
JOptionPane.QUESTION_MESSAGE);
String input=
JOptionPane.showInputDialog(null,
"Enter an input",
"Input Dialog Demo",
JOptionPane.QUESTION_MESSAGE);
转载于:https://www.cnblogs.com/jiangjh/articles/2075576.html