在applet中new一个空的frame,不要显示!
Frame frame1 = new Frame();
aboutDialog aboutdlg = new aboutDialog( frame1, "关于", true ); 

解决方案 »

  1.   

    在Dialog的WindowDeactivated事件中调用toFront
      

  2.   

    Frame f = new Frame();
    Dialog dlg = new Dialog( f, "kk", true ); 
      

  3.   

    给你一个得到Applet的模式对话框的frame的函数,可以实现在浏览器中模式的效果,让你单击网页的时候,此对话框始终在网页上。  
    使用方法: Dialog dlgAbout=new Dialog(getFrame(),"标题",true);
    public Frame getFrame() 
    {
       Container parent;
       //下面的applet变量:是你自己的applet的实例引用,用的时候,自己替换即可。
       for(parent = applet; parent != null && !(parent instanceof Frame) ; parent = parent.getParent());
              if(parent != null)
             return (Frame)parent;
              else
             return null;
        }
      

  4.   

    to David_lin()
    我试了一下,很好用,正是我想要的效果,非常感谢。