document.该frame的名字.style.display = "none";

解决方案 »

  1.   

    是java还是javascript如果是java可以使用一个是隐藏一个是关闭
    关闭可以使用System.exit(0);
    隐藏属性:setVisiable
      

  2.   

    是在java中用啊!
    System.exit(0);是退出整个应用程序我只想关闭frame,不想关闭主窗体啊?
      

  3.   

    在窗口事件监听
    class closeWin extends WindowAdaper
    {
    public void windowClosing (Windowevent e)
    {
      Frame f = (Frame) (e.getSource());
      f.dispose();
       System.exit(0);
    }
    }
      

  4.   

            aButton.addActionListener(new ActionListener()
            {
              public void actionPerformed(ActionEvent e)
              {
                 YourFrameName.this.dispose();  //YourFrameName,你的框架类名
              }
            });     20分给我