中国联通组织架构:JAVA 中的这一句话哪里不对??

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 14:04:21
private void findPerformed() {
String findString = JOptionPane.showInputDialog(this, );
}

private void findPerformed() {
String findString = JOptionPane.showInputDialog(this, "");
}

其中
this 必须是一个Component组件

JOptionPane.showInputDialog(null, "");
这样也可以

JOptionPane.showInputDialog(this,) 的返回类型不是String ,你检查一下

简单