按理说是会刷新的,可能是你的paint方法写得有问题

解决方案 »

  1.   

    举个例子,比如
    你的body里面有一个applet
    <applet ID=myApplet Name=myApplet code=Applet1 width=120 height=30>
          </applet>
    这样写,嗯,要把id和name都写上
    然后在你的
    页面代码里面写上
    <body onFocus = "javaScript:document.all.myApplet.repaint()" >应该可以了
    有问题再说
      

  2.   

    应该要自动刷新的,你那边有问题,我觉得这也不是什么大毛病啊!
    你如果非要追求完美,可以载入一个背景图片,你不要背景就用白图
    public void init(){
        img=getImage(getDocumentBase(),getParameter("image"));
    }
        public void paint(Graphics g){
           g.drawImage(img,0,0,this);
        }
    这是程序主要部分,这样做之后一定会让你满意的