当iframe引入的页面刷新以后,有什么办法可以让它所在的外部页面也同时刷新呢,因为外部页面的一些功能会随着iframe的更新而改变,为了使他们实现同步,请高手指点,

解决方案 »

  1.   

    public class DomeJFrame extends JFrame{
       static DomeJFrame domeJFrame=new DomeJFrame();
       public static DomeJFrame getDomeJFrame(){
          return DomeJFrame;
       } 
    }
    public class  setJFrame{
       DomeJFrame domeJFrame=new DomeJFrame.getDomeJFrame();
    }这样就可以了,这样DomeJFrame类在内存中只有一个实例对象,不管你怎么改DomeJFrame类中的的数据,都能在,DomeJFrame类中得到实现。