# 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:** 1\
**Showing post:** 4

<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)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/maximize-window/44392)._
