# Hey, i would like to execute a window that has no x minimise and so no buttons on top

**URL:** <https://discourse.processing.org/t/hey-i-would-like-to-execute-a-window-that-has-no-x-minimise-and-so-no-buttons-on-top/39240>\
**Category:** Coding Questions\
**Created:** [October 13, 2022, 9:50am UTC](https://discourse.processing.org/t/hey-i-would-like-to-execute-a-window-that-has-no-x-minimise-and-so-no-buttons-on-top/39240 "2022-10-13T09:50:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [October 13, 2022, 12:39pm UTC](https://discourse.processing.org/t/hey-i-would-like-to-execute-a-window-that-has-no-x-minimise-and-so-no-buttons-on-top/39240/2 "2022-10-13T12:39:25Z")

</div>

Hi @Lissie,

> [@Lissie](#):
>
> without any exit store down and minimise buttons

If you are referring to the window title bar, then yes it’s possible to remove it:

> [@Is setUndecorated() possible?](https://discourse.processing.org/t/is-setundecorated-possible/1097/6):
>
> Right, surface doesn’t have a setUndecorated() function, presumably because not every renderer supports it. There are other approaches in the link posted by GoToLoop. [Here](https://forum.processing.org/two/discussion/12200/processing-3-how-to-setundecorated-true) is one that’s probably better than the one I posted above: void settings() { fullScreen(); } void setup() { surface.setSize(500,500); } void draw() { background(0); ellipse(mouseX, mouseY, 20, 20); }

Example using `fullScreen()` and then setting the window size and location:

```processing
void settings() {
  fullScreen();
}

void setup() {
  surface.setSize(500, 500);
  surface.setLocation(200, 200);
}

void draw() {
  background(0);
  ellipse(mouseX, mouseY, 20, 20);
}

```

> [@Lissie](#):
>
> that closes after like 10 seconds

For that you need a way to measure time, check this for ideas on how to implement it:

> [@Brick Game Timer Question](https://discourse.processing.org/t/brick-game-timer-question/38605/2):
>
> Hi @newprogrammer12, To understand better how it works, maybe start with a simpler example (without Java classes). Displaying a timer implies using time. In Processing we can get the current time since the beginning of the program in milliseconds with the millis() function. Let’s look at the following program: // Starts at the beginning of the program int timerStart = 0; int duration = 1000; void draw() { // Time spent since the beginning of the timer int timeSinceStart = millis() - tim…

Also the [`exit()`](https://processing.org/reference/exit_.html) function to terminate the sketch.

---

_[View the full topic](https://discourse.processing.org/t/hey-i-would-like-to-execute-a-window-that-has-no-x-minimise-and-so-no-buttons-on-top/39240)._
