# Gap bewteen frame title and top of frame

**URL:** https://discourse.processing.org/t/gap-bewteen-frame-title-and-top-of-frame/1772
**Category:** Processing
**Created:** [July 14, 2018, 9:13pm UTC](https://discourse.processing.org/t/gap-bewteen-frame-title-and-top-of-frame/1772 "2018-07-14T21:13:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jeffmarc](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeffmarc](https://discourse.processing.org/u/jeffmarc)
#### Post date: [July 14, 2018, 9:13pm UTC](https://discourse.processing.org/t/gap-bewteen-frame-title-and-top-of-frame/1772/1 "2018-07-14T21:13:13Z")

</div>

OK, so i have  
frame.setUndecorated(true);  
frame.setTitle(“NAME OF PROGRAM”);

Also i set frame location to 0,0 on first iteration of draw loop to make sure the frame is orientated to the upper left corner of the display.

The executable version of the program still shows a gap of what look like about 10-15 pixels from the bottom of the title bar to the top of my actual usable frame.

Is there a way to get rid of this gap?

thanks

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [July 15, 2018, 8:01am UTC](https://discourse.processing.org/t/gap-bewteen-frame-title-and-top-of-frame/1772/2 "2018-07-15T08:01:58Z")

</div>

Can you post a screenshot of what you see in your machine?

Kf

---

<div class="post-metadata">

### Author: ![jeffmarc](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeffmarc](https://discourse.processing.org/u/jeffmarc)
#### Post date: [July 15, 2018, 4:23pm UTC](https://discourse.processing.org/t/gap-bewteen-frame-title-and-top-of-frame/1772/3 "2018-07-15T16:23:42Z")

</div>

Here are 2 screen shots.  
1st is .exe running. note gray gap between title and start of blue frame.  
this causes the bottom off the displayable screen.

However, when running the same as sketch, title bar and blue frame are butted together with no gray gap.

Is there a way to get rid of this gray gap in the running .exe of the sketch.  
I set location at the top of draw loop to upper left , 0,0.

thks

 ![msufullscreens](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/1X/83eee8965a6b03e8c46a5b4d580256b84c06c98f.jpg)

```auto

```

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [July 15, 2018, 4:39pm UTC](https://discourse.processing.org/t/gap-bewteen-frame-title-and-top-of-frame/1772/4 "2018-07-15T16:39:52Z")

</div>

What OS is this? How are you calling setlocation? There is a setLocation that suppose to adjust the sketch window’s location on the OS display area. Or are you targeting an underlying component of Processing?

Kf

---

<div class="post-metadata">

### Author: ![jeffmarc](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeffmarc](https://discourse.processing.org/u/jeffmarc)
#### Post date: [July 15, 2018, 5:31pm UTC](https://discourse.processing.org/t/gap-bewteen-frame-title-and-top-of-frame/1772/5 "2018-07-15T17:31:47Z")

</div>

OS is windows 10.

at top of draw loop do this for the first frame rate loop only.

frame.setLocation(0,0);
