Processing 3 borders

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

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.

Can you please post your code as an MCVE so we can run it?

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.

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

surface.setResizable(true);

Thanks.