为什么没人回答阿?~~~~~~~~~~~~`

解决方案 »

  1.   

    因为你的代码太长了·····先自己找找错误吧,不要什么都放上来
      

  2.   

    还好, 不算太长.
    主要问题(语法方面):
    1. 忘记 import java.io.*;
            import javax.swing.*;2. 没有定义jMenuItem1_actionPerformed(e);
    3. string ---> String
    4. 没有定义jEditorPane1
    5. 没有屏蔽 getResource("[Your Icon]")));6. 下列函数定义及实现有问题,我改动如下,请对照你的版本.
        public void jMenuItem2_actionPerformed(ActionEvent e){
          int returnVal=jFileChooser1.showOpenDialog(this);
          String filename=new String();
          if(returnVal==JFileChooser.APPROVE_OPTION)
            filename=jFileChooser1.getSelectedFile().getAbsolutePath();
          this.setTitle("打开"+filename);
    //      catch (IOException ie)
    //      {}
        }