我正在使用JOptionPane.showInputDialog("correct the following string");
并希望在对话框打开时在对话框的输入字段中输入某个字符串。这可能是JOptionPane
吗?
答案 0 :(得分:0)
使用它代替JOptionPane.showInputDialog(“更正以下字符串”);
String mystr = JOptionPane.showInputDialog(null,
"correct the following string", "correct the following string");