frame.destroy()
不用system.exit(),系统就不会中止

解决方案 »

  1.   

    Frame 没有destroy()这个方法,倒是applet中有一个,我试了试,为什么还是不行?
    类EX_show_1_ivPoints 继承自Applet.    final EX_show_1_ivPoints ivPoints = EX_show_1_ivPoints(full_fileNames);  
        Frame ivFrame = new MainFrame( ivPoints, 400,400);
        ivFrame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
        ivPoints.destroy();
             }
        });