open a jFrame, but hidden, without flashing once

Having problems with building or using the JCEF Java binding? Ask your questions here.

open a jFrame, but hidden, without flashing once

Postby majeddotcom » Tue Feb 02, 2021 9:10 am

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();
majeddotcom
Newbie
 
Posts: 6
Joined: Mon Mar 02, 2020 2:26 pm

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

Postby majeddotcom » Fri Feb 12, 2021 9:26 am

no one really needed this to be done and have experience in that ? :D :D
majeddotcom
Newbie
 
Posts: 6
Joined: Mon Mar 02, 2020 2:26 pm


Return to JCEF Forum

Who is online

Users browsing this forum: amaitland and 3 guests