什么地方写错了呢?
private void findPerformed() {
String findString = JOptionPane.showInputDialog(this, ));
 }

解决方案 »

  1.   

    JOptionPane.showInputDialog(this, ));
    能编译通过?
      

  2.   


    public static String showInputDialog(Component parentComponent,
                                         Object message,
                                         Object initialSelectionValue)显示请求用户输入内容的问题消息对话框,它以 parentComponent 为父级。输入值将被初始化为 initialSelectionValue。该对话框显示于 Component 的窗体的上部,通常位于 Component 之下。 参数:
    parentComponent - 对话框的父 Component
    message - 要显示的 Object
    initialSelectionValue - 用于初始化输入字段的值
      

  3.   

    String findString = JOptionPane.showInputDialog(this)).toString();
    试一下!我瞎猜的!
      

  4.   

    JOptionPane.showInputDialog(this, )
    如果不想填参数也得用null来代替啊,
    JOptionPane.showInputDialog(this, null,null)。另外他还有几个重载得方法,看看JDK得帮助文档
      

  5.   


    public static String showInputDialog(Component parentComponent,
                                         Object message,
                                         Object initialSelectionValue)显示请求用户输入内容的问题消息对话框,它以 parentComponent 为父级。输入值将被初始化为 initialSelectionValue。该对话框显示于 Component 的窗体的上部,通常位于 Component 之下。
    ========================================
    这才是对的,就算是你不用的属性,你也要加上null才行