3 Replies Latest reply on Feb 28, 2011 6:18 AM by NeoRamza2

    How to make a function to wait for a windows be closed.

    NeoRamza2

      I have a method with some linecodes. In the midle of the lines has a comand where open a windows in some situations. Something like this:

       


      comand1;
      comand2;
      comand3;
      if(bShowWarnings){
         PopUpManager.addPopUp(f_war, this, true);
         PopUpManager.centerPopUp(f_war);
      }
      comand4;
      comand5;

       

      I want the comands 4 and 5 to be executable only after the "f_war" be closed. (At leat when the f_war is modal). I can't put this lines inside "f_war" because sometimes this window are not showed. How can I do this?

       

      Thanks.