swing のJOptionPane.showInputDialog を使って、こんな感じで、一個のテキストボックスを表示して
文字列を取得しているのですが、二個のテキストボックスを表示させて、文字列を取得することはできませんでしょうか。
private String inputDialog(String str) {
String result = JOptionPane.showInputDialog( this, str, "インフォメーション", JOptionPane.INFORMATION_MESSAGE);
return result;
}