从对话框中获取输入

String input=

JOptionPane.showInputDialog(null,

"Enter an input",

"Input Dialog Demo",

JOptionPane.QUESTION_MESSAGE);

posted @ 2011-06-08 19:01  爱无限  阅读(173)  评论(0编辑  收藏  举报