# G4P - Each window is displayed for a moment on the display

**URL:** <https://discourse.processing.org/t/g4p-each-window-is-displayed-for-a-moment-on-the-display/33486>\
**Category:** Libraries\
**Created:** [November 13, 2021, 10:13am UTC](https://discourse.processing.org/t/g4p-each-window-is-displayed-for-a-moment-on-the-display/33486 "2021-11-13T10:13:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![csokasi](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@csokasi](https://discourse.processing.org/u/csokasi)\
**Post date:** [November 13, 2021, 10:13am UTC](https://discourse.processing.org/t/g4p-each-window-is-displayed-for-a-moment-on-the-display/33486/1 "2021-11-13T10:13:31Z")

</div>

```auto
import g4p_controls.*;

public void setup(){
  size(480, 320, JAVA2D);

  createGUI(); // Each window is displayed for a moment on the display.
                 // I want this to happen in the background.
  
  customGUI(); // The windows disappear but flash on the display beforehand.
}

public void draw(){
  background(230);
}

public void customGUI(){
  window1.setVisible(false);
  window2.setVisible(false);
  window3.setVisible(false);
}

```

This is a short code with 3 windows.  
Check out the launch of my app in this video:  
[G4P load windows](https://youtu.be/u4PmbUr9upU) 🤪

If you have any idea how windows can remain invisible, please help.
