# Maximize window

**URL:** <https://forum.inductiveautomation.com/t/maximize-window/44392>\
**Category:** Ignition\
**Created:** [March 12, 2021, 6:29am UTC](https://forum.inductiveautomation.com/t/maximize-window/44392 "2021-03-12T06:29:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![448719222](https://avatars.discourse-cdn.com/v4/letter/4/71e660/32.png) [@448719222](https://forum.inductiveautomation.com/u/448719222)\
**Post date:** [March 12, 2021, 6:29am UTC](https://forum.inductiveautomation.com/t/maximize-window/44392/1 "2021-03-12T06:29:23Z")

</div>

Do I want to call a function to maximize the window when the client is minimized

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [March 12, 2021, 5:03pm UTC](https://forum.inductiveautomation.com/t/maximize-window/44392/2 "2021-03-12T17:03:45Z")

</div>

What are you trying to accomplish? Preventing users from minimizing the client window? Is this a Vision client or Perspective client?

---

<div class="post-metadata">

**Author:** ![448719222](https://avatars.discourse-cdn.com/v4/letter/4/71e660/32.png) [@448719222](https://forum.inductiveautomation.com/u/448719222)\
**Post date:** [March 12, 2021, 5:19pm UTC](https://forum.inductiveautomation.com/t/maximize-window/44392/3 "2021-03-12T17:19:24Z")

</div>

We often minimize the client, when there are some events, or receive message, maximize the window to the desktop ( vision)

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [March 12, 2021, 7:20pm UTC](https://forum.inductiveautomation.com/t/maximize-window/44392/4 "2021-03-12T19:20:26Z")

</div>

This code should give you a start:

> [@Max Window size in different monitors](http://forum.inductiveautomation.com/t/max-window-size-in-different-monitors/32030/3):
>
> Do you mean full screen mode where the window fills the whole screen with no title bar? If so, the code below on a button will swap the desktop the button is contained in between full screen and windowed modes. from javax.swing import JFrame window = system.gui.getParentWindow(event) while not isinstance(window, JFrame): window = window.getParent() if window.isUndecorated(): # Switch to windowed mode. window.dispose() window.setUndecorated(False) window.setExtendedState(JFrame.NORMAL) #…

You'll need to figure out how to capture your triggers for maximizing, get the parent JFrame of the window, and then just use this part, where `window` is the parent JFrame you want to maximize:

```auto
window.setExtendedState(JFrame.NORMAL)

```

---

<div class="post-metadata">

**Author:** ![thidalgo](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@thidalgo](https://forum.inductiveautomation.com/u/thidalgo)\
**Post date:** [May 20, 2023, 10:35am UTC](https://forum.inductiveautomation.com/t/maximize-window/44392/5 "2023-05-20T10:35:57Z")

</div>

Hello, is there any way to do the same for a perspective workstation embedded application ?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 20, 2023, 10:58am UTC](https://forum.inductiveautomation.com/t/maximize-window/44392/6 "2023-05-20T10:58:08Z")

</div>

This thread is about _Vision_. Your question is about _Perspective_. I suggest you open an new thread, tag it as `perspective` and explain exactly what you are trying to do.
