# Open new windows with Processing

**URL:** <https://discourse.processing.org/t/open-new-windows-with-processing/4050>\
**Category:** Coding Questions\
**Created:** [October 2, 2018, 5:17pm UTC](https://discourse.processing.org/t/open-new-windows-with-processing/4050 "2018-10-02T17:17:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon57009815](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Post date:** [October 2, 2018, 5:17pm UTC](https://discourse.processing.org/t/open-new-windows-with-processing/4050/1 "2018-10-02T17:17:37Z")

</div>

Hello all  
Is there a way to open new windows with processing? like another window of size(x,z).  
Maybe by a button or something.  
I would like to ask if there is some library that I can use that do that without coding from native Java  
Best, Luis.

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [October 2, 2018, 5:21pm UTC](https://discourse.processing.org/t/open-new-windows-with-processing/4050/2 "2018-10-02T17:21:11Z")

</div>

Both the **G4P** and **controlP5** libraries support multiple windows.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 2, 2018, 5:24pm UTC](https://discourse.processing.org/t/open-new-windows-with-processing/4050/3 "2018-10-02T17:24:14Z")

</div>

We can also call **runSketch()** for it: 🤓

- [Forum.Processing.org/two/discussions/tagged?Tag=PApplet.runsketch()](http://Forum.Processing.org/two/discussions/tagged?Tag=PApplet.runsketch%28%29)

---

<div class="post-metadata">

**Author:** ![anon57009815](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Post date:** [October 2, 2018, 5:32pm UTC](https://discourse.processing.org/t/open-new-windows-with-processing/4050/4 "2018-10-02T17:32:06Z")

</div>

Hello quark!  
Thanks, I am running CP5 atm, can you be more specific?  
So many code in here lol  
Best, Luis

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [October 2, 2018, 5:40pm UTC](https://discourse.processing.org/t/open-new-windows-with-processing/4050/5 "2018-10-02T17:40:14Z")

</div>

CP5? I assume you mean controlP5. In Processing select **File \> Examples** from the menus. In the window that opens open the **Contributed Libraries** tab and find **ControlP5** there should ba an example of opening a new window.
