# Open close windows

**URL:** <https://discourse.processing.org/t/open-close-windows/27312>\
**Category:** Coding Questions\
**Created:** [January 23, 2021, 5:51pm UTC](https://discourse.processing.org/t/open-close-windows/27312 "2021-01-23T17:51:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [January 23, 2021, 5:51pm UTC](https://discourse.processing.org/t/open-close-windows/27312/1 "2021-01-23T17:51:02Z")

</div>

hi

is there away to call one window from other window ?

```auto
void setup() {
  String[] args = {"TwoFrameTest"};
  SecondApplet sa = new SecondApplet();
  PApplet.runSketch(args, sa);
}

void settings() {  
  size(300, 100);
}

void draw() {
  background(0);
  fill(255);
  text("Hello world!", 50, 40);
}   

public class SecondApplet extends PApplet {

  public void settings() {
    size(200, 200);
  }

  public void draw() {
    background(255);
    fill(0);  
    text("Hello world!", 50, 40);
  }
}

```

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [January 23, 2021, 6:01pm UTC](https://discourse.processing.org/t/open-close-windows/27312/2 "2021-01-23T18:01:15Z")

</div>

maybe this helps

see [Calling processing sketches within a processing sketch](https://discourse.processing.org/t/calling-processing-sketches-within-a-processing-sketch/27167)

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [January 23, 2021, 6:22pm UTC](https://discourse.processing.org/t/open-close-windows/27312/3 "2021-01-23T18:22:54Z")

</div>

thanks it is far from what i asked

regards

---

<div class="post-metadata">

**Author:** ![Flolo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/flolo/32/13874_2.png) [@Flolo](https://discourse.processing.org/u/Flolo)\
**Post date:** [January 24, 2021, 6:51pm UTC](https://discourse.processing.org/t/open-close-windows/27312/4 "2021-01-24T18:51:44Z")

</div>

You could try the G4P library.

> [@Is it possible to open a second window in processing 3.4 using G4P](https://discourse.processing.org/t/is-it-possible-to-open-a-second-window-in-processing-3-4-using-g4p/5888/4):
>
> Creating a new GWindow is straightforward enough but to launch a new program (sketch) and passing values form an existing sketch is a different problem altogether. Are you using the GUI Builder tool to create your initial GUI?
