# How to open maximized window?

**URL:** https://discourse.processing.org/t/how-to-open-maximized-window/22941
**Category:** Coding Questions
**Created:** [July 30, 2020, 11:21pm UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941 "2020-07-30T23:21:57Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Rafsing](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rafsing/32/10134_2.png) [@Rafsing](https://discourse.processing.org/u/Rafsing)
#### Post date: [July 30, 2020, 11:21pm UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/1 "2020-07-30T23:21:57Z")

</div>

How to open maximized window with windows taskbar. I’m using the newest version of processing, and any version of` size(displayWidth, displayHeight); surface.setResizable(true); surface.setLocation(0, 0);` doesn’t work.

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [July 31, 2020, 12:58am UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/2 "2020-07-31T00:58:52Z")

</div>

Use command fullSize - see reference

(fullScreen())

---

<div class="post-metadata">

### Author: ![Rafsing](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rafsing/32/10134_2.png) [@Rafsing](https://discourse.processing.org/u/Rafsing)
#### Post date: [July 31, 2020, 1:01am UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/3 "2020-07-31T01:01:29Z")

</div>

I don’t mean full screen. I mean this:

 ![Adnotacja 2020-07-31 024058](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/e5fc7a7c910d5ae472ffe0786684b22041ac78ea.png)

---

<div class="post-metadata">

### Author: ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)
#### Post date: [July 31, 2020, 1:38am UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/4 "2020-07-31T01:38:21Z")

</div>

Hi @Rafsing

I think the main Processing 3.0 issue here is you can’ t use variables as arguments for `size()` on `setup()` anymore. Have a look at: [https://processing.org/reference/settings\_.html](https://processing.org/reference/settings_.html)

But then, using `surface’ for everything it works for me:

```auto
void setup() {
  surface.setResizable(true);
  surface.setSize(displayWidth, displayHeight) ;
  surface.setLocation(0, 0);
}

void draw() {
  background(255, 0, 0);
  ellipse(width/2, height/2, 100, 50);
}

```

---

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [July 31, 2020, 1:40am UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/5 "2020-07-31T01:40:44Z")

</div>

Hello,

There is a related discussion here:

> [@How do I maximize the sketch window?](https://discourse.processing.org/t/how-do-i-maximize-the-sketch-window/11620):
>
> Hi, How do I maximize the sketch window? (not fullscreen) Thanks!

`:)`

---

<div class="post-metadata">

### Author: ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)
#### Post date: [July 31, 2020, 8:14am UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/6 "2020-07-31T08:14:33Z")

</div>

Use the `FX2D` renderer mode and the maximise button becomes available.

---

<div class="post-metadata">

### Author: ![Rafsing](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rafsing/32/10134_2.png) [@Rafsing](https://discourse.processing.org/u/Rafsing)
#### Post date: [July 31, 2020, 10:00am UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/7 "2020-07-31T10:00:04Z")

</div>

What system are you using?

---

<div class="post-metadata">

### Author: ![Rafsing](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rafsing/32/10134_2.png) [@Rafsing](https://discourse.processing.org/u/Rafsing)
#### Post date: [July 31, 2020, 10:12am UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/8 "2020-07-31T10:12:59Z")

</div>

I found this discussion, but so far it shows that there is no solution and must be done manually.

---

<div class="post-metadata">

### Author: ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)
#### Post date: [July 31, 2020, 3:05pm UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941/10 "2020-07-31T15:05:10Z")

</div>

I’m on Linux (Xubuntu, Ubuntu + XFCE)

@micycle has a good point, different renderers have different surface instances  
(P2D, P3D, FX2D and the default renderer could act differently)
