turbochen有相关的说明教程,你可以到网上搜索此人的教程
另:turbochen对于swing$awt还是有一定功底的,你可以多向他请教

解决方案 »

  1.   

    你在调用的方法里调用dispose方法就可以了。下面就是打开一个Dialog,而主窗体关闭的代码    Dialog1 dg=new Dialog1(null,"bbb",false);
        this.dispose();
        dg.setVisible(true);
      

  2.   

    this.dispose();
    new NewDialog(this,"title",false).show();
      

  3.   

    我让按钮执行了产生了一个EquipmentManage新对象(我编写的一个类),
    EquipmentManage success=new EquipmentManage();
    //System.exit(0);
    怎么让他在打开EquipmentManage后本窗体关闭呢用//如果用:System.exit(0)
    产生的新窗体也同时被关闭了,我该怎么办????