【发布时间】:2012-12-14 13:05:45
【问题描述】:
String result = JOptionPane.showInputDialog(this, temp);
result 值将是输入的值。
String result = JOptionPane.showInternalInputDialog(this, temp);
result 即使你输入了一个字符串,值也会为空。
temp 是一个将包含在 JOptionPane 中的面板。此 JOptionPane 将显示在另一个自定义 JOptionPane 之上。
【问题讨论】:
-
我的意思是输出。为什么不一样?
-
如果您没有很快得到合适的答案,请考虑创建并发布sscce。
标签: java swing joptionpane