When show a new documentview, it flashes a white background

i have create a documentview with my component ,and when i show it, i can see a white background flash sometimes. how can i solve this problem?

There’s not enough information in the question to say where this problem is coming from.

Some things you could try:

  • Test out some of the JUCE examples, such as the DemoRunner. Do those have the same problem? If so, there might be a bug in JUCE; otherwise, the problem is likely somewhere in your code. You might be able to track down the issue yourself by comparing your program to other programs that don’t exhibit this problem.
  • Explain exactly how your program is structured, and/or post a small code example, along with the exact steps that cause the problem. This will make it easier for other people to help you.

I tried it with demorunner, and the windowsdemo pop-up dialog will flash on a white background before the content appears.

This phenomenon is not every time, more operation several times the probability is quite large