Page 1 of 1

open a jFrame, but hidden, without flashing once

PostPosted: Tue Feb 02, 2021 9:10 am
by majeddotcom
I am trying to open all my frames when my main frame is being loaded. so the JS code on each page gets run in the background and values on my server gets updated based on DOM on each page.
I can easily do that with a for loop and using .setVisible() function .
the problem is that when that happens, user sees a flash on the page when form loads and hide immediately. is there any way to load the frame once without that flash? this is how I implemented loading the form on "onBeforePopup" routine for the first time. it runs as I want. the only issue is the flash I see on opening each page.
Code: Select all
   lFrame.setState(Frame.NORMAL);
   //---------------------------------------------------------------------------- 
   // make the frame hidden/visible if there is param for it in the url. for example for message.html form
   if(lIsVisible != null && lIsVisible.equals("hidden")) {
      lFrame.setVisible(false);                  
   }else {
      lFrame.setVisible(true);
   }
   lFrame.requestFocus();

Re: open a jFrame, but hidden, without flashing once

PostPosted: Fri Feb 12, 2021 9:26 am
by majeddotcom
no one really needed this to be done and have experience in that ? :D :D