String input=
JOptionPane.showInputDialog(null,
"Enter an input",
"Input Dialog Demo",
JOptionPane.QUESTION_MESSAGE);