# How make the display window no overlap the text editor window?

**URL:** <https://discourse.processing.org/t/how-make-the-display-window-no-overlap-the-text-editor-window/31840>\
**Category:** Coding Questions\
**Created:** [August 22, 2021, 1:37pm UTC](https://discourse.processing.org/t/how-make-the-display-window-no-overlap-the-text-editor-window/31840 "2021-08-22T13:37:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AshSnaga](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ashsnaga/32/13807_2.png) [@AshSnaga](https://discourse.processing.org/u/AshSnaga)\
**Post date:** [August 22, 2021, 1:37pm UTC](https://discourse.processing.org/t/how-make-the-display-window-no-overlap-the-text-editor-window/31840/1 "2021-08-22T13:37:16Z")

</div>

Hi, there. I had this excruciating problem 😉 I want to see both windows at the same time when coding. Each time I run a sketch I must move the display window to see the text editor window.  
I know that people work without this annoing problem.  
What I must do?

---

<div class="post-metadata">

**Author:** ![AshSnaga](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/ashsnaga/32/13807_2.png) [@AshSnaga](https://discourse.processing.org/u/AshSnaga)\
**Post date:** [August 22, 2021, 8:19pm UTC](https://discourse.processing.org/t/how-make-the-display-window-no-overlap-the-text-editor-window/31840/2 "2021-08-22T20:19:26Z")

</div>

Hadeel Alharthi say me :"… On to the screen dilemma; this is the weirdest thing because, before the latest update, I had the same issue. I found a solution recently where you can apply this line of code:

```
surface.setLocation(x, y)

```

in the setup function to position the preview screen where you want. After the new update, the issue ceased to persist without using the `setLocation()` method. My preview screen stays where I position it when I first run my sketch. Check Processing’s reference page for more methods you can use with the surface object."

[![](https://img.youtube.com/vi/Aqwpxl5LUFI/maxresdefault.jpg "Data Visualization in Processing | Generative Art | Tutorial [CC]") ](https://www.youtube.com/watch?v=Aqwpxl5LUFI)

[Hadeel Alharthi](https://www.youtube.com/channel/UC1S-SVSaZ5a1ZgHxvKnQIOQ)
