# Processing 3 borders

**URL:** https://discourse.processing.org/t/processing-3-borders/2823
**Category:** Coding Questions
**Created:** [August 21, 2018, 4:40pm UTC](https://discourse.processing.org/t/processing-3-borders/2823 "2018-08-21T16:40:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MTech](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@MTech](https://discourse.processing.org/u/MTech)
#### Post date: [August 21, 2018, 4:40pm UTC](https://discourse.processing.org/t/processing-3-borders/2823/1 "2018-08-21T16:40:22Z")

</div>

Hello,

I’ve been trying to write a fairly simple overlay-timer using processing 3. I managed to remove the bar’s around the application, but for some reason there is a grey surface which i can’t seem to get rid of.

This is what it looks like: [http://prntscr.com/klatcr](http://prntscr.com/klatcr)

The relevant code can also be seen in the screenshot. The green area is perfectly fine and corresponds with the 180,50 width/height. I don’t understand where the greyish area is coming from though, and i’d like it to be removed.

Any help would be appreciated, i’ve been reading through some topics but can’t figure it out yet.

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [August 21, 2018, 4:45pm UTC](https://discourse.processing.org/t/processing-3-borders/2823/2 "2018-08-21T16:45:01Z")

</div>

Can you please post your code as an [MCVE](https://stackoverflow.com/help/mcve) so we can run it?

---

<div class="post-metadata">

### Author: ![MTech](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@MTech](https://discourse.processing.org/u/MTech)
#### Post date: [August 21, 2018, 6:56pm UTC](https://discourse.processing.org/t/processing-3-borders/2823/3 "2018-08-21T18:56:12Z")

</div>

Hey thanks for responding, yea this is the code its basically down to:

import processing.awt.PSurfaceAWT;  
final int windowWidth = 150;  
final int windowHeight = 150;

void settings(){  
size(windowWidth, windowHeight);

}

void setup(){  
PSurfaceAWT awtSurface = (PSurfaceAWT)surface;  
PSurfaceAWT.SmoothCanvas smoothCanvas = (PSurfaceAWT.SmoothCanvas)awtSurface.getNative();  
smoothCanvas.getFrame().setAlwaysOnTop(true);  
smoothCanvas.getFrame().removeNotify();  
smoothCanvas.getFrame().setUndecorated(true);  
smoothCanvas.getFrame().setLocation(250, -100);  
smoothCanvas.getFrame().addNotify();  
}

void draw(){  
background(0,155,0);  
}

// ============ END

I dont think thers anything wrong with the code tho, im just curious on how to remove the greyish area around the actual green background.

---

<div class="post-metadata">

### Author: ![MTech](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@MTech](https://discourse.processing.org/u/MTech)
#### Post date: [August 21, 2018, 8:29pm UTC](https://discourse.processing.org/t/processing-3-borders/2823/4 "2018-08-21T20:29:41Z")

</div>

Adding the following line in beginning of setup fixed my problem:

surface.setResizable(true);

Thanks.
